mirror of
https://github.com/opencv/opencv.git
synced 2025-06-12 20:42:53 +08:00
Merge pull request #8288 from Jejos:bugfix_medianBlur_accessviolation
This commit is contained in:
commit
408ef5c65b
@ -3494,7 +3494,7 @@ void cv::medianBlur( InputArray _src0, OutputArray _dst, int ksize )
|
||||
|
||||
CV_Assert( (ksize % 2 == 1) && (_src0.dims() <= 2 ));
|
||||
|
||||
if( ksize <= 1 )
|
||||
if( ksize <= 1 || _src0.empty() )
|
||||
{
|
||||
_src0.copyTo(_dst);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user