Skip to content

Commit 354592d

Browse files
authored
Merge pull request #22 from v-do/fix-convex-hull-area
fixed get convex hull area
2 parents 8f3044b + 0e1db26 commit 354592d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/BlobOperators.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ double CBlobGetHullArea::operator()(CBlob &blob)
7171
blob.GetConvexHull(convexHull);
7272
double area;
7373

74-
if( convexHull.size()==0 )
74+
if( convexHull.size() )
7575
area = fabs(contourArea(convexHull[0],true));
7676
else
7777
return 0;

0 commit comments

Comments
 (0)