MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / getLength

Method getLength

ij/src/main/java/ij/gui/ShapeRoi.java:621–625  ·  view source on GitHub ↗

Returns the perimeter of this ShapeRoi.

()

Source from the content-addressed store, hash-verified

619
620 /** Returns the perimeter of this ShapeRoi. */
621 public double getLength() {
622 if (width==0 && height==0)
623 return 0.0;
624 return parsePath(shape.getPathIterator(new AffineTransform()), GET_LENGTH, null);
625 }
626
627 /** Returns a path iterator for this ROI's shape containing no curved (only straight) segments */
628 PathIterator getFlatteningPathIterator(Shape s, double fl) {

Callers

nothing calls this directly

Calls 2

parsePathMethod · 0.95
getPathIteratorMethod · 0.45

Tested by

no test coverage detected