T
- L
- public interface LabelingCursorStrategy<T extends Comparable<T>,L extends Labeling<T>>
Modifier and Type | Method and Description |
---|---|
LocalizableCursor<FakeType> |
createLocalizableLabelCursor(T label)
A localizable cursor that iterates over every pixel with the given
label.
|
LocalizableCursor<FakeType> |
createLocalizablePerimeterCursor(T label)
A localizable cursor that iterates over every pixel in the perimeter
of the labeled object.
|
long |
getArea(T label)
Return the area of the labeled object in units of pixels or the volume
of the labeled object in voxels (or the hyper-volume of the 4/5-d
object in ?toxels? or ?spectracels? or ?spectratoxels?)
|
boolean |
getExtents(T label,
int[] minExtents,
int[] maxExtents)
Get the extents of the bounding box around the labeled object
|
Collection<T> |
getLabels()
Find all of the labels used to label pixels.
|
boolean |
getRasterStart(T label,
int[] start)
The coordinates of the first pixel with the given label when raster
scanning through the space.
|
LocalizableCursor<FakeType> createLocalizableLabelCursor(T label)
label
- - the label of the pixels to be traversedLocalizableCursor<FakeType> createLocalizablePerimeterCursor(T label)
label
- - the label to be traversedboolean getExtents(T label, int[] minExtents, int[] maxExtents)
label
- - the label of the object in questionminExtents
- - on input, must be an array of size D or larger
where D is the dimension of the space. On output, the minimum value
of the pixel coordinates for the labeled object is stored in the array.maxExtents
- - the maximum value of the pixel coordinates for
the labeled object.boolean getRasterStart(T label, int[] start)
label
- - search on pixels of this labelstart
- - on input, an array of at least size D, on output
the coordinates of the raster start.long getArea(T label)
Collection<T> getLabels()
Copyright © 2015–2021 Fiji. All rights reserved.