fastNlMeansDenoising cannot handle constant images with gray-value 255 (Bug #2646)
Description
The following code produces an image with only zeros. If every pixel is set to 254 instead, everything works fine.
cv::Mat testImg(50, 50, CV_8UC1, cv::Scalar::all(255));
cv::Mat filteredTestImg;
cv::fastNlMeansDenoising(testImg, filteredTestImg);
Associated revisions
Add test for issue #2646
Fix integer overflow in NL-Means denoising on white input
Issues #2646
Merge pull request #2646 from ilya-lavrenov:ipp_remap
History
Updated by Vadim Pisarevsky about 12 years ago
- Affected version set to 2.4.3
- Target version deleted ()
Updated by Vadim Pisarevsky about 12 years ago
- Assignee deleted (
Leonid Beynenson)
Updated by Andrey Kamaev about 12 years ago
- Assignee set to Andrey Kamaev
Updated by Andrey Kamaev about 12 years ago
- Pull request set to https://github.com/Itseez/opencv/pull/343
Updated by Kirill Kornyakov about 12 years ago
- Target version set to 2.4.4