Commit 2a48f7c0 authored by Alexey Spizhevoy's avatar Alexey Spizhevoy

fixed include for Windows

parent 406f342d
......@@ -41,9 +41,15 @@
//M*/
#include "precomp.hpp"
#include <math.h>
#include "opencv2/calib3d/calib3d_c.h"
#ifdef _MSC_VER
#include <float.h>
#define isnan(x) _isnan(x)
#else
#include <math.h>
#endif
using namespace cv;
using namespace cv::detail;
......@@ -253,8 +259,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)) ||
isinf(cam_params_.at<double>(i,0)))
if (isnan(cam_params_.at<double>(i,0)))
{
ok = false;
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment