mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
added special function to patch NaN's in image. call this function from bilateralfilter (should fix bug #1811)
This commit is contained in:
@@ -1439,6 +1439,7 @@ bilateralFilter_32f( const Mat& src, Mat& dst, int d,
|
||||
// temporary copy of the image with borders for easy processing
|
||||
Mat temp;
|
||||
copyMakeBorder( src, temp, radius, radius, radius, radius, borderType );
|
||||
patchNaNs(temp);
|
||||
|
||||
// allocate lookup tables
|
||||
vector<float> _space_weight(d*d);
|
||||
|
||||
Reference in New Issue
Block a user