cv::bilateralFilter, Segmentation fault when input contains 'nan' (Bug #1811)


Added by Daniel Canelhas almost 13 years ago. Updated almost 13 years ago.


Status:Done Start date:2012-04-17
Priority:Normal Due date:
Assignee:Vadim Pisarevsky % Done:

0%

Category:imgproc, video
Target version:2.4.0
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

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

Revision 866d8c0c
Added by Vadim Pisarevsky almost 13 years ago

added special function to patch NaN's in image. call this function from bilateralfilter (should fix bug #1811)

Revision bb4bf7a1
Added by Roman Donchenko over 11 years ago

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

Also available in: Atom PDF