T
- - the type used to label the spaceL
- - the labeling class that will use this strategy for cursors and
random access.@Deprecated public class DefaultROIStrategy<T extends Comparable<T>,L extends Labeling<T>> extends Object implements LabelingROIStrategy<T,L>
Modifier and Type | Field and Description |
---|---|
protected long |
generation
Deprecated.
|
protected L |
labeling
Deprecated.
|
protected Map<T,net.imglib2.labeling.DefaultROIStrategy.LabelStatistics> |
statistics
Deprecated.
|
Constructor and Description |
---|
DefaultROIStrategy(L labeling)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
computeStatistics()
Deprecated.
Compute all statistics on the labels if cache is dirty.
|
IterableRegionOfInterest |
createIterableRegionOfInterest(T label)
Deprecated.
An iterable region of interest, optimized for iteration over the pixels
in the region of interest.
|
RegionOfInterest |
createRegionOfInterest(T label)
Deprecated.
A region of interest designed to be queried for point-membership
|
long |
getArea(T label)
Deprecated.
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,
long[] minExtents,
long[] maxExtents)
Deprecated.
Get the extents of the bounding box around the labeled object
|
Collection<T> |
getLabels()
Deprecated.
Find all of the labels used to label pixels.
|
boolean |
getRasterStart(T label,
long[] start)
Deprecated.
The coordinates of the first pixel with the given label when raster
scanning through the space.
|
protected long generation
protected Map<T extends Comparable<T>,net.imglib2.labeling.DefaultROIStrategy.LabelStatistics> statistics
public DefaultROIStrategy(L labeling)
protected void computeStatistics()
public boolean getExtents(T label, long[] minExtents, long[] maxExtents)
LabelingROIStrategy
getExtents
in interface LabelingROIStrategy<T extends Comparable<T>,L extends Labeling<T>>
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.public boolean getRasterStart(T label, long[] start)
LabelingROIStrategy
getRasterStart
in interface LabelingROIStrategy<T extends Comparable<T>,L extends Labeling<T>>
label
- - search on pixels of this labelstart
- - on input, an array of at least size D, on output the
coordinates of the raster start.public long getArea(T label)
LabelingROIStrategy
getArea
in interface LabelingROIStrategy<T extends Comparable<T>,L extends Labeling<T>>
public Collection<T> getLabels()
LabelingROIStrategy
getLabels
in interface LabelingROIStrategy<T extends Comparable<T>,L extends Labeling<T>>
public RegionOfInterest createRegionOfInterest(T label)
LabelingROIStrategy
createRegionOfInterest
in interface LabelingROIStrategy<T extends Comparable<T>,L extends Labeling<T>>
label
- - the label of the pixels to be traversedpublic IterableRegionOfInterest createIterableRegionOfInterest(T label)
LabelingROIStrategy
createIterableRegionOfInterest
in interface LabelingROIStrategy<T extends Comparable<T>,L extends Labeling<T>>
label
- - the label to be traversedCopyright © 2015–2022 ImgLib2. All rights reserved.