Commit cc85e86e authored by Alexey Spizhevoy's avatar Alexey Spizhevoy

fixed Windows build

parent 438a5992
......@@ -41,7 +41,7 @@
//M*/
#include "precomp.hpp"
#include <cmath>
#include <math.h>
#include "opencv2/calib3d/calib3d_c.h"
using namespace cv;
......@@ -253,8 +253,8 @@ bool BundleAdjusterBase::estimate(const std::vector<ImageFeatures> &features,
bool ok = true;
for (int i = 0; i < cam_params_.rows; ++i)
{
if (std::isnan(cam_params_.at<double>(i,0)) ||
std::isinf(cam_params_.at<double>(i,0)))
if (isnan(cam_params_.at<double>(i,0)) ||
isinf(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