mirror of
https://github.com/opencv/opencv.git
synced 2024-11-26 04:00:30 +08:00
change border type for medianBlur to BORDER_ISOLATED
This commit is contained in:
parent
0608227e10
commit
20c08eab73
@ -3162,7 +3162,7 @@ void cv::medianBlur( InputArray _src0, OutputArray _dst, int ksize )
|
||||
}
|
||||
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();
|
||||
CV_Assert( src.depth() == CV_8U && (cn == 1 || cn == 3 || cn == 4) );
|
||||
|
Loading…
Reference in New Issue
Block a user