Replaced quiet return from MSER:detectRegion function with exeption throwing to notify user in case small image is processed

This commit is contained in:
Vitaly Tuzov 2016-08-15 11:28:52 +03:00
parent 9db93d773d
commit 62c1a5a152

View File

@ -1025,7 +1025,7 @@ void MSER_Impl::detectRegions( InputArray _src, vector<vector<Point> >& msers, v
bboxes.clear();
if( src.rows < 3 || src.cols < 3 )
return;
CV_Error(Error::StsBadArg, "Input image is too small. Expected at least 3x3");
Size size = src.size();