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