mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
Merge pull request #23036 from asmorkalov:as/blobdetect_range_fix
This commit is contained in:
commit
de9787a6ac
@ -83,8 +83,8 @@ public:
|
|||||||
if (p.thresholdStep <= 0)
|
if (p.thresholdStep <= 0)
|
||||||
CV_Error(Error::StsBadArg, "thresholdStep>0");
|
CV_Error(Error::StsBadArg, "thresholdStep>0");
|
||||||
|
|
||||||
if (p.minThreshold > p.maxThreshold || p.minThreshold <= 0)
|
if (p.minThreshold > p.maxThreshold || p.minThreshold < 0)
|
||||||
CV_Error(Error::StsBadArg, "0<minThreshold<=maxThreshold");
|
CV_Error(Error::StsBadArg, "0<=minThreshold<=maxThreshold");
|
||||||
|
|
||||||
if (p.minDistBetweenBlobs <=0 )
|
if (p.minDistBetweenBlobs <=0 )
|
||||||
CV_Error(Error::StsBadArg, "minDistBetweenBlobs>0");
|
CV_Error(Error::StsBadArg, "minDistBetweenBlobs>0");
|
||||||
|
Loading…
Reference in New Issue
Block a user