mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 09:25:45 +08:00
Merge pull request #1253 from kamjagin:fixingCompilationOnOSX
This commit is contained in:
commit
556028eff5
@ -201,8 +201,10 @@
|
||||
#if !defined _MSC_VER && !defined __BORLANDC__
|
||||
# if defined __cplusplus && __cplusplus >= 201103L
|
||||
# include <cstdint>
|
||||
typedef std::uint32_t uint;
|
||||
# else
|
||||
# include <stdint.h>
|
||||
typedef uint32_t uint;
|
||||
# endif
|
||||
#else
|
||||
typedef unsigned uint;
|
||||
|
@ -42,13 +42,7 @@
|
||||
|
||||
#include "precomp.hpp"
|
||||
#include "opencv2/calib3d/calib3d_c.h"
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#include <float.h>
|
||||
#define isnan(x) _isnan(x)
|
||||
#else
|
||||
#include <math.h>
|
||||
#endif
|
||||
#include "opencv2/core/cvdef.h"
|
||||
|
||||
using namespace cv;
|
||||
using namespace cv::detail;
|
||||
@ -259,7 +253,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)))
|
||||
if (cvIsNaN(cam_params_.at<double>(i,0)))
|
||||
{
|
||||
ok = false;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user