change border type for medianBlur to BORDER_ISOLATED

This commit is contained in:
elenagvo 2017-11-17 15:13:04 +03:00
parent 0608227e10
commit 20c08eab73

View File

@ -3162,7 +3162,7 @@ void cv::medianBlur( InputArray _src0, OutputArray _dst, int ksize )
} }
else else
{ {
cv::copyMakeBorder( src0, src, 0, 0, ksize/2, ksize/2, BORDER_REPLICATE ); cv::copyMakeBorder( src0, src, 0, 0, ksize/2, ksize/2, BORDER_REPLICATE|BORDER_ISOLATED);
int cn = src0.channels(); int cn = src0.channels();
CV_Assert( src.depth() == CV_8U && (cn == 1 || cn == 3 || cn == 4) ); CV_Assert( src.depth() == CV_8U && (cn == 1 || cn == 3 || cn == 4) );