From: Alexander Smorkalov Date: Mon, 26 Dec 2022 09:07:00 +0000 (+0300) Subject: Fixed blob detector parameters range. X-Git-Tag: accepted/tizen/unified/20230127.161057~1^2~10^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b7292bc8990cef10b424c96defd6160965a78f88;p=platform%2Fupstream%2Fopencv.git Fixed blob detector parameters range. --- diff --git a/modules/features2d/src/blobdetector.cpp b/modules/features2d/src/blobdetector.cpp index 396521f72b..7cd49d8193 100644 --- a/modules/features2d/src/blobdetector.cpp +++ b/modules/features2d/src/blobdetector.cpp @@ -83,8 +83,8 @@ public: if (p.thresholdStep <= 0) CV_Error(Error::StsBadArg, "thresholdStep>0"); - if (p.minThreshold > p.maxThreshold || p.minThreshold <= 0) - CV_Error(Error::StsBadArg, "0 p.maxThreshold || p.minThreshold < 0) + CV_Error(Error::StsBadArg, "0<=minThreshold<=maxThreshold"); if (p.minDistBetweenBlobs <=0 ) CV_Error(Error::StsBadArg, "minDistBetweenBlobs>0");