public class WritablePolygon2DToPolygonRoiConverter extends AbstractMaskPredicateToRoiConverter<WritablePolygon2D,PolygonRoi>
WritablePolygon2D
to a PolygonRoi
of type POLYGON.
This converter is lossy, since PolygonRoi
s store vertices as
float
s.Constructor and Description |
---|
WritablePolygon2DToPolygonRoiConverter() |
Modifier and Type | Method and Description |
---|---|
PolygonRoi |
convert(WritablePolygon2D mask) |
Class<WritablePolygon2D> |
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 WritablePolygon2DToPolygonRoiConverter()
public Class<PolygonRoi> getOutputType()
public Class<WritablePolygon2D> getInputType()
public PolygonRoi convert(WritablePolygon2D mask)
convert
in class AbstractMaskPredicateToRoiConverter<WritablePolygon2D,PolygonRoi>
public boolean isLossy()
isLossy
in class AbstractMaskPredicateToRoiConverter<WritablePolygon2D,PolygonRoi>
Copyright © 2014–2022 ImageJ. All rights reserved.