defined uint for non-windows platforms too. replaced isnan for cvIsNaN.
authorMiroslav Kobetski <kamjagin@gmail.com>
Mon, 12 Aug 2013 18:08:06 +0000 (20:08 +0200)
committerkamjagin <kamjagin@gmail.com>
Wed, 14 Aug 2013 15:16:52 +0000 (17:16 +0200)
cmake/OpenCVFindLibsGUI.cmake
modules/core/include/opencv2/core/cvdef.h
modules/stitching/src/motion_estimators.cpp

index 04c77d8..270853a 100644 (file)
@@ -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()
index 5a70d38..2130157 100644 (file)
 #  else
 #    include <stdint.h>
 #  endif
+   typedef uint32_t uint;
 #else
    typedef unsigned uint;
 #endif
index abd43b1..7ceb495 100644 (file)
 
 #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;