cv::bilateralFilter, Segmentation fault when input contains 'nan' (Bug #1811)
Description
in openCV version 2.3, when using bilateralFilter with a cv::Mat of type CV_32FC1 in which some entries are nan (common for sensor-generated images where "zero" could count as a valid measurement) a segmentation fault occurs at runtime. An exception would be better...
cv::blur does not segfault on the same images (but might be doing other strange things...)
Associated revisions
added special function to patch NaN's in image. call this function from bilateralfilter (should fix bug #1811)
Merge pull request #1811 from Nerei:fixed_some_build_errors
History
Updated by Andrey Kamaev almost 13 years ago
- Category set to imgproc, video
Updated by Vadim Pisarevsky almost 13 years ago
thanks for the report. In SVN, r8185 I added function patchNaNs that replaces NaNs with the specified value. This function is now called from within bilateralFilter (without affecting the input image), so the exception should not happen anymore.
- Status changed from Open to Done
- Target version set to 2.4.0
- Assignee set to Vadim Pisarevsky