提交 c5dbc061 编写于 作者: M Maria Dimashova

fixed bilateralFilter on uniform CV_32F image

上级 b782d8bb
......@@ -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)
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
Mat temp;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册