We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f9bc19d commit 8cdca47Copy full SHA for 8cdca47
src/main/java/ij/blob/Blob.java
@@ -51,6 +51,7 @@ public class Blob {
51
public final static int DRAW_HOLES = 1;
52
public final static int DRAW_CONVEX_HULL = 2;
53
public final static int DRAW_LABEL = 4;
54
+
55
private static Color defaultColor = Color.black;
56
57
@@ -978,7 +979,7 @@ public double getAreaConvexHull(){
978
979
980
Blob helpblob = new Blob(polyPoints, -1);
981
ImagePlus imp = generateBlobImage(helpblob);
- areaConvexHull = imp.getStatistics().getHistogram()[0];
982
+ areaConvexHull = imp.getStatistics().getHistogram()[0]*cal.pixelHeight*cal.pixelWidth;
983
//areaConvexHull = getArea(polyPoints)*cal.pixelHeight*cal.pixelWidth;
984
return areaConvexHull;
985
}
0 commit comments