public class DefaultROIService extends AbstractService implements ROIService
ROIService
.ROI_PROPERTY
Constructor and Description |
---|
DefaultROIService() |
Modifier and Type | Method and Description |
---|---|
Mask |
toMask(Object o)
Attempts to convert the given
Object to a Mask |
MaskInterval |
toMaskInterval(Object o)
Attempts to convert the given
Object to a MaskInterval |
MaskPredicate<?> |
toMaskPredicate(Object o)
Attempts to convert the given
Object to a MaskPredicate . |
RandomAccessibleInterval<BoolType> |
toRandomAccessibleInterval(Object o)
Attempts to convert the given
Object to a
RandomAccessibleInterval<BoolType> ; otherwise, an exception is
thrown. |
RandomAccessible<BoolType> |
toRandomAcessible(Object o)
Attempts to convert the given
Object to a
RandomAccessible<BoolType> ; otherwise, an exception is thrown. |
RealMask |
toRealMask(Object o)
Attempts to convert the given
Object to a RealMask |
RealMaskRealInterval |
toRealMaskRealInterval(Object o)
Attempts to convert the given
Object to a
RealMaskRealInterval |
RealRandomAccessible<BoolType> |
toRealRandomAccessible(Object o)
Attempts to convert the given
Object to a
RealRandomAccessible . |
RealRandomAccessibleRealInterval<BoolType> |
toRealRandomAccessibleRealInterval(Object o)
Attempts to convert the given
Object to a
RealRandomAccessibleRealInterval . |
getContext, setContext, toString
getInfo, getPriority, setInfo, setPriority
context
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
add, clear, closedBox, closedEllipsoid, closedPolygon2D, closedPolygon2D, closedSphere, closedSuperEllipsoid, getROIs, hasROIs, kDTreeRealPointCollection, kDTreeRealPointCollection, line, line, openBox, openEllipsoid, openPolygon2D, openPolygon2D, openSphere, openSuperEllipsoid, pointMask, pointMask, polygon2D, polygon2D, polyline, realPointCollection, realPointCollection, realPointSampleListRealPointCollection, realPointSampleListRealPointCollection
initialize, registerEventHandlers
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
dispose
public Mask toMask(Object o)
ROIService
Object
to a Mask
toMask
in interface ROIService
o
- the Object to be converted. This object should be something like
an ImageJ 1.x Roi, RandomAccessible, etc.Mask
representation of the given object, if possiblepublic MaskInterval toMaskInterval(Object o)
ROIService
Object
to a MaskInterval
toMaskInterval
in interface ROIService
o
- the Object to be converted. This object should be something like
an ImageJ 1.x Roi, RandomAccessibleInterval, etc.MaskInterval
representation of the given object, if
possiblepublic RealMask toRealMask(Object o)
ROIService
Object
to a RealMask
toRealMask
in interface ROIService
o
- the Object to be converted. This object should be something like
an ImageJ 1.x Roi, RealRandomAccessible, etc.RealMask
representation of the given object, if possiblepublic RealMaskRealInterval toRealMaskRealInterval(Object o)
ROIService
Object
to a
RealMaskRealInterval
toRealMaskRealInterval
in interface ROIService
o
- the Object to be converted. This object should be something like
an ImageJ 1.x Roi, RealRandomAccessibleRealInterval, etc.RealMaskRealInterval
representation of the given object,
if possiblepublic MaskPredicate<?> toMaskPredicate(Object o)
ROIService
Object
to a MaskPredicate
.toMaskPredicate
in interface ROIService
o
- the Object to be converted. This object should be something like
an ImageJ 1.x Roi, (Real)RandomAccessible, etc.MaskPredicate
representation of the given Object, if
possiblepublic RandomAccessible<BoolType> toRandomAcessible(Object o)
ROIService
Object
to a
RandomAccessible<BoolType>
; otherwise, an exception is thrown.toRandomAcessible
in interface ROIService
o
- the Object to be converted. In general, this should be an ImageJ
1.x Roi or an Imglib2 MaskPredicate.public RandomAccessibleInterval<BoolType> toRandomAccessibleInterval(Object o)
ROIService
Object
to a
RandomAccessibleInterval<BoolType>
; otherwise, an exception is
thrown.toRandomAccessibleInterval
in interface ROIService
o
- the Object to be converted. In general, this should be an ImageJ
1.x Roi or an ImgLib2 MaskPredicate.public RealRandomAccessible<BoolType> toRealRandomAccessible(Object o)
ROIService
Object
to a
RealRandomAccessible
.toRealRandomAccessible
in interface ROIService
o
- the Object to be converted. In general, this should be an ImageJ
1.x Roi or an ImgLib2 MaskPredicate.public RealRandomAccessibleRealInterval<BoolType> toRealRandomAccessibleRealInterval(Object o)
ROIService
Object
to a
RealRandomAccessibleRealInterval
.toRealRandomAccessibleRealInterval
in interface ROIService
o
- the Object to be converted. In general, this should be an ImageJ
1.x Roi or an ImgLib2 MaskPredicate.Copyright © 2014–2022 ImageJ. All rights reserved.