提交 62c1a5a1 编写于 作者: V Vitaly Tuzov

Replaced quiet return from MSER:detectRegion function with exeption throwing...

Replaced quiet return from MSER:detectRegion function with exeption throwing to notify user in case small image is processed
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册