# Uses of Class
ij.process.FloatPolygon

Packages that use FloatPolygon
Package
Description
ij.gui
ij.process

## Uses of FloatPolygon in ij.gui

Methods in ij.gui that return FloatPolygon
Modifier and Type
Method
Description
`FloatPolygon`
PointRoi.`getContainedFloatPoints()`
Returns the points as a FloatPolygon.
`FloatPolygon`
Roi.`getContainedFloatPoints()`
Returns the coordinates of the pixels inside this ROI as a FloatPolygon.
`FloatPolygon`
Roi.`getFloatConvexHull()`
Returns the convex hull of this Roi as a FloatPolygon.
`FloatPolygon`
ShapeRoi.`getFloatConvexHull()`
`FloatPolygon`
Line.`getFloatPoints()`
Returns, as a FloatPolygon, the two points that define this line.
`FloatPolygon`
Line.`getFloatPolygon()`
If the width of this line is less than or equal to one, returns the starting and ending coordinates as a 2-point FloatPolygon, or, if the width is greater than one, returns an outline of the line as a 4-point FloatPolygon.
`FloatPolygon`
Line.`getFloatPolygon(double strokeWidth)`
Obsolete
`FloatPolygon`
OvalRoi.`getFloatPolygon()`
Returns this OvalRoi as a FloatPolygon approximating the ellipse.
`FloatPolygon`
PolygonRoi.`getFloatPolygon()`
Returns this polygon or polyline as float arrays in image pixel coordinates.
`FloatPolygon`
Roi.`getFloatPolygon()`
Returns the outline of this selection as a FloatPolygon
`FloatPolygon`
Roi.`getFloatPolygon(String options)`
Returns the outline in image pixel coordinates, where options may include "close" to add a point to close the outline if this is an area roi and the outline is not closed yet.
`FloatPolygon`
ShapeRoi.`getFloatPolygon()`
Returns all vertex points of the shape as approximated by polygons, in image pixel coordinates
`FloatPolygon`
ShapeRoi.`getFloatPolygon(double flatness, boolean separateSubpaths, boolean addPointForClose, boolean absoluteCoord)`
Returns a FloatPolygon with all vertices of the flattened shape, i.e., the shape approximated by straight line segments.
`FloatPolygon`
ShapeRoi.`getFloatPolygon(Shape shape, double flatness, boolean separateSubpaths, boolean addPointForClose, boolean absoluteCoord)`
`FloatPolygon`
ShapeRoi.`getFloatPolygon(String options)`
Returns all vertex points of the shape as approximated by polygons, where options may include "close" to add points to close each subpath, and "separate" to insert NaN values between subpaths (= individual polygons)
`FloatPolygon`
OvalRoi.`getFloatPolygon4()`
Returns this OvalRoi as a 4 point FloatPolygon (x,y,w,h).
`FloatPolygon`
PolygonRoi.`getInterpolatedPolygon(double interval, boolean smooth)`
`FloatPolygon`
Roi.`getInterpolatedPolygon()`
Returns, as a FloatPolygon, an interpolated version of this selection that has points spaced 1.0 pixel apart.
`FloatPolygon`
Roi.`getInterpolatedPolygon(double interval, boolean smooth)`
Returns, as a FloatPolygon, an interpolated version of this selection with points spaced 'interval' pixels apart.
`protected FloatPolygon`
Roi.`getInterpolatedPolygon(FloatPolygon p, double interval, boolean smooth)`
Returns, as a FloatPolygon, an interpolated version of this selection with points spaced abs('interval') pixels apart.
`FloatPolygon`
PolygonRoi.`getNonSplineFloatPolygon()`
`FloatPolygon`
Line.`getRotationCenter()`
`FloatPolygon`
Roi.`getRotationCenter()`
`FloatPolygon`
ShapeRoi.`getSelectionCoordinates()`
Used by the getSelectionCoordinates macro function
Methods in ij.gui with parameters of type FloatPolygon
Modifier and Type
Method
Description
`protected int`
PointRoi.`getClosestPoint(double x, double y, FloatPolygon points)`
`protected int`
PolygonRoi.`getClosestPoint(double x, double y, FloatPolygon points)`
`protected FloatPolygon`
Roi.`getInterpolatedPolygon(FloatPolygon p, double interval, boolean smooth)`
Returns, as a FloatPolygon, an interpolated version of this selection with points spaced abs('interval') pixels apart.
Constructors in ij.gui with parameters of type FloatPolygon
Modifier
Constructor
Description
``
`PointRoi(FloatPolygon poly)`
Creates a new PointRoi from a FloatPolygon.
``
`PolygonRoi(FloatPolygon p, int type)`
Creates a new polygon or polyline ROI from a FloatPolygon.

## Uses of FloatPolygon in ij.process

Methods in ij.process that return FloatPolygon
Modifier and Type
Method
Description
`FloatPolygon`
FloatPolygon.`duplicate()`
`FloatPolygon`
FloatPolygon.`getConvexHull()`
Uses the gift wrap algorithm to find the convex hull of all points in this FloatPolygon and returns it as a new FloatPolygon.