Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
b595d73d
Commit
b595d73d
authored
Aug 12, 2013
by
Miroslav Kobetski
Committed by
kamjagin
Aug 14, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
defined uint for non-windows platforms too. replaced isnan for cvIsNaN.
parent
04c86f28
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
9 deletions
+4
-9
OpenCVFindLibsGUI.cmake
cmake/OpenCVFindLibsGUI.cmake
+1
-1
cvdef.h
modules/core/include/opencv2/core/cvdef.h
+1
-0
motion_estimators.cpp
modules/stitching/src/motion_estimators.cpp
+2
-8
No files found.
cmake/OpenCVFindLibsGUI.cmake
View file @
b595d73d
...
@@ -70,7 +70,7 @@ endif(WITH_OPENGL)
...
@@ -70,7 +70,7 @@ endif(WITH_OPENGL)
if
(
APPLE
)
if
(
APPLE
)
if
(
WITH_CARBON
)
if
(
WITH_CARBON
)
set
(
HAVE_CARBON YES
)
set
(
HAVE_CARBON YES
)
elif
(
NOT IOS
)
el
se
if
(
NOT IOS
)
set
(
HAVE_COCOA YES
)
set
(
HAVE_COCOA YES
)
endif
()
endif
()
endif
()
endif
()
modules/core/include/opencv2/core/cvdef.h
View file @
b595d73d
...
@@ -204,6 +204,7 @@
...
@@ -204,6 +204,7 @@
# else
# else
# include <stdint.h>
# include <stdint.h>
# endif
# endif
typedef
uint32_t
uint
;
#else
#else
typedef
unsigned
uint
;
typedef
unsigned
uint
;
#endif
#endif
...
...
modules/stitching/src/motion_estimators.cpp
View file @
b595d73d
...
@@ -42,13 +42,7 @@
...
@@ -42,13 +42,7 @@
#include "precomp.hpp"
#include "precomp.hpp"
#include "opencv2/calib3d/calib3d_c.h"
#include "opencv2/calib3d/calib3d_c.h"
#include "opencv2/core/cvdef.h"
#ifdef _MSC_VER
#include <float.h>
#define isnan(x) _isnan(x)
#else
#include <math.h>
#endif
using
namespace
cv
;
using
namespace
cv
;
using
namespace
cv
::
detail
;
using
namespace
cv
::
detail
;
...
@@ -259,7 +253,7 @@ bool BundleAdjusterBase::estimate(const std::vector<ImageFeatures> &features,
...
@@ -259,7 +253,7 @@ bool BundleAdjusterBase::estimate(const std::vector<ImageFeatures> &features,
bool
ok
=
true
;
bool
ok
=
true
;
for
(
int
i
=
0
;
i
<
cam_params_
.
rows
;
++
i
)
for
(
int
i
=
0
;
i
<
cam_params_
.
rows
;
++
i
)
{
{
if
(
isnan
(
cam_params_
.
at
<
double
>
(
i
,
0
)))
if
(
cvIsNaN
(
cam_params_
.
at
<
double
>
(
i
,
0
)))
{
{
ok
=
false
;
ok
=
false
;
break
;
break
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment