From 438a599288e003b516b9d41838b3d280a1dc6b6e Mon Sep 17 00:00:00 2001 From: Alexey Spizhevoy Date: Thu, 4 Jul 2013 16:57:20 +0400 Subject: [PATCH] added 'cmath' include --- modules/stitching/src/motion_estimators.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/stitching/src/motion_estimators.cpp b/modules/stitching/src/motion_estimators.cpp index 3640bd3cc0..494104d235 100644 --- a/modules/stitching/src/motion_estimators.cpp +++ b/modules/stitching/src/motion_estimators.cpp @@ -41,6 +41,7 @@ //M*/ #include "precomp.hpp" +#include #include "opencv2/calib3d/calib3d_c.h" using namespace cv; @@ -252,8 +253,8 @@ bool BundleAdjusterBase::estimate(const std::vector &features, bool ok = true; for (int i = 0; i < cam_params_.rows; ++i) { - if (isnan(cam_params_.at(i,0)) || - isinf(cam_params_.at(i,0))) + if (std::isnan(cam_params_.at(i,0)) || + std::isinf(cam_params_.at(i,0))) { ok = false; break;