public class Polygon2DToPolygonRoiConverter extends AbstractMaskPredicateToRoiConverter<Polygon2D,PolygonRoi>
Polygon2D
to a PolygonRoi
of type POLYGON. This
converter is lossy, since PolygonRoi
s store vertices as
float
s 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, convert
canConvert, canConvert, canConvert, convert, convert, getType, populateInputCandidates, supports
getInfo, getPriority, setInfo, setPriority, toString
context, getContext
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
public 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.