T
- - the type used to label the pixels, for instance string names for
user-assigned object labels or integers for machine-labeled
images.@Deprecated public abstract class AbstractLabeling<T extends Comparable<T>> extends AbstractInterval implements Labeling<T>
Modifier and Type | Field and Description |
---|---|
protected long |
size
Deprecated.
|
protected LabelingROIStrategy<T,? extends Labeling<T>> |
strategy
Deprecated.
|
max, min
n
Modifier | Constructor and Description |
---|---|
protected |
AbstractLabeling(long[] size,
LabelingROIStrategyFactory<T> factory)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
long |
getArea(T label)
Deprecated.
Return the area or suitable N-d analog of the labeled object
|
boolean |
getExtents(T label,
long[] minExtents,
long[] maxExtents)
Deprecated.
find the coordinates of the bounding box around the given label.
|
IterableRegionOfInterest |
getIterableRegionOfInterest(T label)
Deprecated.
Get a ROI that represents the pixels with the given label
|
Collection<T> |
getLabels()
Deprecated.
Find all labels in the space
|
boolean |
getRasterStart(T label,
long[] start)
Deprecated.
Find the first pixel in a raster scan of the object with the given label.
|
RegionOfInterest |
getRegionOfInterest(T label)
Deprecated.
Get a region of interest optimized to determine point membership
|
void |
setLabelingCursorStrategy(LabelingROIStrategy<T,? extends Labeling<T>> strategy)
Deprecated.
Use an alternative strategy for making labeling cursors.
|
long |
size()
Deprecated.
Returns the number of elements in this
Function . |
dimension, dimensions, max, max, max, min, min, min, realMax, realMax, realMax, realMin, realMin, realMin, toString
numDimensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAt, getAt, getAt, randomAccess, randomAccess
cursor, localizingCursor
firstElement, iterationOrder
forEach, iterator, spliterator
dimension, max, max, max, maxAsLongArray, maxAsPoint, min, min, min, minAsLongArray, minAsPoint, realMax, realMin
maxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMax, realMin, realMin
allPositive, allPositive, dimensions, dimensions, dimensionsAsLongArray, dimensionsAsPoint, verify, verify, verifyAllPositive, verifyAllPositive
numDimensions
protected LabelingROIStrategy<T extends Comparable<T>,? extends Labeling<T extends Comparable<T>>> strategy
protected long size
protected AbstractLabeling(long[] size, LabelingROIStrategyFactory<T> factory)
public long size()
IterableRealInterval
Returns the number of elements in this Function
.
size
in interface IterableRealInterval<LabelingType<T extends Comparable<T>>>
public void setLabelingCursorStrategy(LabelingROIStrategy<T,? extends Labeling<T>> strategy)
strategy
- - a strategy for making labeling cursors.public RegionOfInterest getRegionOfInterest(T label)
Labeling
getRegionOfInterest
in interface Labeling<T extends Comparable<T>>
label
- The ROI will represent the area labeled with this labelpublic IterableRegionOfInterest getIterableRegionOfInterest(T label)
Labeling
getIterableRegionOfInterest
in interface Labeling<T extends Comparable<T>>
public boolean getExtents(T label, long[] minExtents, long[] maxExtents)
getExtents
in interface Labeling<T extends Comparable<T>>
label
- - find pixels with this labelpublic boolean getRasterStart(T label, long[] start)
getRasterStart
in interface Labeling<T extends Comparable<T>>
public long getArea(T label)
getArea
in interface Labeling<T extends Comparable<T>>
label
- - label for object in questionpublic Collection<T> getLabels()
getLabels
in interface Labeling<T extends Comparable<T>>
Copyright © 2015–2022 ImgLib2. All rights reserved.