1
0
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:
Vadim Pisarevsky
2012-04-24 15:16:21 +00:00
parent 47ee844df6
commit 866d8c0cfa
3 changed files with 26 additions and 0 deletions
+1
View File
@@ -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);