Skip to content

Commit 20c08ea

Browse files
author
elenagvo
committed
change border type for medianBlur to BORDER_ISOLATED
1 parent 0608227 commit 20c08ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/imgproc/src/smooth.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3162,7 +3162,7 @@ void cv::medianBlur( InputArray _src0, OutputArray _dst, int ksize )
31623162
}
31633163
else
31643164
{
3165-
cv::copyMakeBorder( src0, src, 0, 0, ksize/2, ksize/2, BORDER_REPLICATE );
3165+
cv::copyMakeBorder( src0, src, 0, 0, ksize/2, ksize/2, BORDER_REPLICATE|BORDER_ISOLATED);
31663166

31673167
int cn = src0.channels();
31683168
CV_Assert( src.depth() == CV_8U && (cn == 1 || cn == 3 || cn == 4) );

0 commit comments

Comments
 (0)