Skip to content

Commit a501cd8

Browse files
author
jumpfunky
committed
Fix: Convexity does not use the calibration
1 parent a1d2598 commit a501cd8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -740,8 +740,7 @@ private double getPerimeterOfContour(Polygon contour){
740740
dummy.setCalibration(cal);
741741
roi.setImage(dummy);
742742

743-
744-
return peri;
743+
return peri*cal.pixelHeight;
745744
}
746745

747746
private int[] contourToChainCode(Polygon contour) {

0 commit comments

Comments
 (0)