public class Polygon2DToPolygonRoiConverter extends AbstractMaskPredicateToRoiConverter<Polygon2D,PolygonRoi>
Polygon2D to a PolygonRoi of type POLYGON. This
converter is lossy, since PolygonRois store vertices as
floats and the boundary behavior of this Polygon2D is lost.| Constructor and Description |
|---|
Polygon2DToPolygonRoiConverter() |
| Modifier and Type | Method and Description |
|---|---|
PolygonRoi |
convert(Polygon2D mask) |
Class<Polygon2D> |
getInputType() |
Class<PolygonRoi> |
getOutputType() |
boolean |
isLossy() |
canConvert, canConvert, convertcanConvert, canConvert, canConvert, convert, convert, getType, populateInputCandidates, supportsgetInfo, getPriority, setInfo, setPriority, toStringcontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersionpublic Class<PolygonRoi> getOutputType()
public PolygonRoi convert(Polygon2D mask)
convert in class AbstractMaskPredicateToRoiConverter<Polygon2D,PolygonRoi>public boolean isLossy()
isLossy in class AbstractMaskPredicateToRoiConverter<Polygon2D,PolygonRoi>Copyright © 2014–2022 ImageJ. All rights reserved.