Replaced quiet return from MSER:detectRegion function with exeption throwing to notif...
authorVitaly Tuzov <terfendail@mediana.jetos.com>
Mon, 15 Aug 2016 08:28:52 +0000 (11:28 +0300)
committerVitaly Tuzov <terfendail@mediana.jetos.com>
Mon, 15 Aug 2016 11:16:13 +0000 (14:16 +0300)
modules/features2d/src/mser.cpp

index 72b2314..4f2cab1 100644 (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();