mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
Add test for issue #2646
This commit is contained in:
parent
d83914d478
commit
7e92826efc
@ -145,3 +145,14 @@ TEST(Photo_DenoisingColoredMulti, regression)
|
|||||||
|
|
||||||
ASSERT_EQ(0, norm(result != expected));
|
ASSERT_EQ(0, norm(result != expected));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST(Photo_White, issue_2646)
|
||||||
|
{
|
||||||
|
cv::Mat img(50, 50, CV_8UC1, cv::Scalar::all(255));
|
||||||
|
cv::Mat filtered;
|
||||||
|
cv::fastNlMeansDenoising(img, filtered);
|
||||||
|
|
||||||
|
int nonWhitePixelsCount = (int)img.total() - cv::countNonZero(filtered == img);
|
||||||
|
|
||||||
|
ASSERT_EQ(0, nonWhitePixelsCount);
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user