mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 22:44:02 +08:00
Replaced quiet return from MSER:detectRegion function with exeption throwing to notify user in case small image is processed
This commit is contained in:
parent
9db93d773d
commit
62c1a5a152
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user