Merge pull request #17635 from jsxyhelu:3.4

pull/17811/head
Alexander Alekhin 4 years ago
commit e18df87a15
  1. 2
      modules/features2d/src/blobdetector.cpp

@ -257,7 +257,7 @@ void SimpleBlobDetectorImpl::findBlobs(InputArray _image, InputArray _binaryImag
{ {
std::vector < Point > hull; std::vector < Point > hull;
convexHull(contours[contourIdx], hull); convexHull(contours[contourIdx], hull);
double area = contourArea(contours[contourIdx]); double area = moms.m00;
double hullArea = contourArea(hull); double hullArea = contourArea(hull);
if (fabs(hullArea) < DBL_EPSILON) if (fabs(hullArea) < DBL_EPSILON)
continue; continue;

Loading…
Cancel
Save