Fixed blob detector parameters range.

pull/23036/head
Alexander Smorkalov 2 years ago
parent 4abe6dc48d
commit b7292bc899
  1. 4
      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<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");

Loading…
Cancel
Save