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

pull/7094/head
Vitaly Tuzov 9 years ago
parent 9db93d773d
commit 62c1a5a152
  1. 2
      modules/features2d/src/mser.cpp

@ -1025,7 +1025,7 @@ void MSER_Impl::detectRegions( InputArray _src, vector<vector<Point> >& msers, v
bboxes.clear(); bboxes.clear();
if( src.rows < 3 || src.cols < 3 ) 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(); Size size = src.size();

Loading…
Cancel
Save