disable ippiMinMaxIndx_32f_C1R usage since it crashes on Nans

This commit is contained in:
Ilya Lavrenov
2016-07-14 14:50:42 +03:00
parent a00f0c44ae
commit c4b57d0ded
2 changed files with 12 additions and 1 deletions

View File

@@ -1844,3 +1844,12 @@ TEST(Normalize, regression_5876_inplace_change_type)
normalize(m, m, 1, 0, NORM_MINMAX, CV_32F);
EXPECT_EQ(0, cvtest::norm(m, result, NORM_INF));
}
TEST(MinMaxLoc, regression_4955_nans)
{
cv::Mat one_mat(2, 2, CV_32F, cv::Scalar(1));
cv::minMaxLoc(one_mat, NULL, NULL, NULL, NULL);
cv::Mat nan_mat(2, 2, CV_32F, cv::Scalar(NAN));
cv::minMaxLoc(nan_mat, NULL, NULL, NULL, NULL);
}