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

Method getFloatPolygon

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

Returns a FloatPolygon with all vertices of the flattened shape, i.e., the shape approximated by straight line segments. This method is for listing the coordinates and creating the convex hull. @param flatness Roughly the maximum allowable distance between the shape and the approximate polygon @p

(double flatness, boolean separateSubpaths, boolean addPointForClose, boolean absoluteCoord)

Source from the content-addressed store, hash-verified

1119 * Note that with <code>addPointForClose = false</code>, there is no distinction between open and closed subpaths.
1120 * @param absoluteCoord specifies whether the coordinates should be with respect to image bounds, not Roi bounds. */
1121 public FloatPolygon getFloatPolygon(double flatness, boolean separateSubpaths, boolean addPointForClose, boolean absoluteCoord) {
1122 return getFloatPolygon(shape, flatness, separateSubpaths, addPointForClose, absoluteCoord);
1123 }
1124
1125 public FloatPolygon getFloatPolygon(Shape shape, double flatness, boolean separateSubpaths, boolean addPointForClose, boolean absoluteCoord) {
1126 if (shape == null) return null;

Callers 8

getFloatPolygonMethod · 0.95
parsePathMethod · 0.95
getMaskMethod · 0.95
getFloatConvexHullMethod · 0.95
getPolygonMethod · 0.95
getFloatPolygonMethod · 0.95
roiToShapeMethod · 0.45

Calls 13

sizeMethod · 0.95
getMethod · 0.95
addMethod · 0.95
getLastMethod · 0.95
removeLastMethod · 0.95
toArrayMethod · 0.95
addToArrayMethod · 0.95
isDoneMethod · 0.80
getXBaseMethod · 0.80
getYBaseMethod · 0.80
nextMethod · 0.65

Tested by

no test coverage detected