added 'cmath' include
authorAlexey Spizhevoy <alexey.spizhevoy@itseez.com>
Thu, 4 Jul 2013 12:57:20 +0000 (16:57 +0400)
committerAlexey Spizhevoy <alexey.spizhevoy@itseez.com>
Thu, 4 Jul 2013 12:57:20 +0000 (16:57 +0400)
modules/stitching/src/motion_estimators.cpp

index 3640bd3..494104d 100644 (file)
@@ -41,6 +41,7 @@
 //M*/
 
 #include "precomp.hpp"
+#include <cmath>
 #include "opencv2/calib3d/calib3d_c.h"
 
 using namespace cv;
@@ -252,8 +253,8 @@ 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)) ||
-            isinf(cam_params_.at<double>(i,0)))
+        if (std::isnan(cam_params_.at<double>(i,0)) ||
+            std::isinf(cam_params_.at<double>(i,0)))
         {
             ok = false;
             break;