Commit b595d73d authored by Miroslav Kobetski's avatar Miroslav Kobetski Committed by kamjagin

defined uint for non-windows platforms too. replaced isnan for cvIsNaN.

parent 04c86f28
......@@ -70,7 +70,7 @@ endif(WITH_OPENGL)
if(APPLE)
if(WITH_CARBON)
set(HAVE_CARBON YES)
elif(NOT IOS)
elseif(NOT IOS)
set(HAVE_COCOA YES)
endif()
endif()
......@@ -204,6 +204,7 @@
# else
# include <stdint.h>
# endif
typedef uint32_t uint;
#else
typedef unsigned uint;
#endif
......
......@@ -42,13 +42,7 @@
#include "precomp.hpp"
#include "opencv2/calib3d/calib3d_c.h"
#ifdef _MSC_VER
#include <float.h>
#define isnan(x) _isnan(x)
#else
#include <math.h>
#endif
#include "opencv2/core/cvdef.h"
using namespace cv;
using namespace cv::detail;
......@@ -259,7 +253,7 @@ bool BundleAdjusterBase::estimate(const std::vector<ImageFeatures> &features,
bool ok = true;
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;
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment