From b7292bc8990cef10b424c96defd6160965a78f88 Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov Date: Mon, 26 Dec 2022 12:07:00 +0300 Subject: [PATCH] Fixed blob detector parameters range. --- modules/features2d/src/blobdetector.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/features2d/src/blobdetector.cpp b/modules/features2d/src/blobdetector.cpp index 396521f..7cd49d8 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"); -- 2.7.4