fix build error

* NAN is not defined on some platform
This commit is contained in:
Tomoaki Teshima 2016-07-23 23:11:57 +09:00
parent 5f33d0c75b
commit 4423a5edad

View File

@ -1902,6 +1902,11 @@ TEST(Normalize, regression_5876_inplace_change_type)
EXPECT_EQ(0, cvtest::norm(m, result, NORM_INF));
}
#ifndef NAN
#include <limits> // numeric_limits<T>::quiet_NaN()
#define NAN std::numeric_limits<float>::quiet_NaN()
#endif
TEST(MinMaxLoc, regression_4955_nans)
{
cv::Mat one_mat(2, 2, CV_32F, cv::Scalar(1));