added 'cmath' include

pull/1079/head
Alexey Spizhevoy 12 years ago
parent 37ea872204
commit 438a599288
  1. 5
      modules/stitching/src/motion_estimators.cpp

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

Loading…
Cancel
Save