fixed bilateralFilter on uniform CV_32F image
This commit is contained in:
parent
b782d8bb53
commit
c5dbc06158
@ -1425,6 +1425,11 @@ bilateralFilter_32f( const Mat& src, Mat& dst, int d,
|
|||||||
// compute the min/max range for the input image (even if multichannel)
|
// compute the min/max range for the input image (even if multichannel)
|
||||||
|
|
||||||
minMaxLoc( src.reshape(1), &minValSrc, &maxValSrc );
|
minMaxLoc( src.reshape(1), &minValSrc, &maxValSrc );
|
||||||
|
if(std::abs(minValSrc - maxValSrc) < FLT_EPSILON)
|
||||||
|
{
|
||||||
|
src.copyTo(dst);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// temporary copy of the image with borders for easy processing
|
// temporary copy of the image with borders for easy processing
|
||||||
Mat temp;
|
Mat temp;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user