Commit 62c1a5a1 authored by Vitaly Tuzov's avatar Vitaly Tuzov

Replaced quiet return from MSER:detectRegion function with exeption throwing to…

Replaced quiet return from MSER:detectRegion function with exeption throwing to notify user in case small image is processed
parent 9db93d77
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment