Skip to content

Commit 8cdca47

Browse files
author
jumpfunky
committed
Fix: Convex area now uses the image calibration
1 parent f9bc19d commit 8cdca47

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/ij/blob/Blob.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ public class Blob {
5151
public final static int DRAW_HOLES = 1;
5252
public final static int DRAW_CONVEX_HULL = 2;
5353
public final static int DRAW_LABEL = 4;
54+
5455
private static Color defaultColor = Color.black;
5556

5657

@@ -978,7 +979,7 @@ public double getAreaConvexHull(){
978979

979980
Blob helpblob = new Blob(polyPoints, -1);
980981
ImagePlus imp = generateBlobImage(helpblob);
981-
areaConvexHull = imp.getStatistics().getHistogram()[0];
982+
areaConvexHull = imp.getStatistics().getHistogram()[0]*cal.pixelHeight*cal.pixelWidth;
982983
//areaConvexHull = getArea(polyPoints)*cal.pixelHeight*cal.pixelWidth;
983984
return areaConvexHull;
984985
}

0 commit comments

Comments
 (0)