diff --git a/modules/features2d/src/blobdetector.cpp b/modules/features2d/src/blobdetector.cpp index c973b09764..d07e8bae83 100644 --- a/modules/features2d/src/blobdetector.cpp +++ b/modules/features2d/src/blobdetector.cpp @@ -257,7 +257,7 @@ void SimpleBlobDetectorImpl::findBlobs(InputArray _image, InputArray _binaryImag { std::vector < Point > hull; convexHull(contours[contourIdx], hull); - double area = contourArea(contours[contourIdx]); + double area = moms.m00; double hullArea = contourArea(hull); if (fabs(hullArea) < DBL_EPSILON) continue;