Merge pull request #23036 from asmorkalov:as/blobdetect_range_fix

This commit is contained in:
Alexander Alekhin 2022-12-26 12:47:45 +00:00
commit de9787a6ac

View File

@ -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<minThreshold<=maxThreshold");
if (p.minThreshold > p.maxThreshold || p.minThreshold < 0)
CV_Error(Error::StsBadArg, "0<=minThreshold<=maxThreshold");
if (p.minDistBetweenBlobs <=0 )
CV_Error(Error::StsBadArg, "minDistBetweenBlobs>0");