@Deprecated public class LabelingView<L extends Comparable<L>> extends IterableRandomAccessibleInterval<LabelingType<L>> implements Labeling<L>, SubIntervalIterable<LabelingType<L>>
Modifier and Type | Field and Description |
---|---|
protected LabelingROIStrategy<L,? extends Labeling<L>> |
m_strategy
Deprecated.
|
sourceInterval
Constructor and Description |
---|
LabelingView(RandomAccessibleInterval<LabelingType<L>> in,
LabelingFactory<L> fac)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
Labeling<L> |
copy()
Deprecated.
Copy method
|
Cursor<LabelingType<L>> |
cursor()
Deprecated.
Returns a
RealCursor that iterates with optimal speed without
calculating the location at each iteration step. |
Cursor<LabelingType<L>> |
cursor(Interval interval)
Deprecated.
|
<LL extends Comparable<LL>> |
factory()
Deprecated.
Factory
|
long |
getArea(L label)
Deprecated.
Return the area or suitable N-d analog of the labeled object
|
boolean |
getExtents(L label,
long[] minExtents,
long[] maxExtents)
Deprecated.
find the coordinates of the bounding box around the given label.
|
IterableRegionOfInterest |
getIterableRegionOfInterest(L label)
Deprecated.
Get a ROI that represents the pixels with the given label
|
Collection<L> |
getLabels()
Deprecated.
Find all labels in the space
|
boolean |
getRasterStart(L label,
long[] start)
Deprecated.
Find the first pixel in a raster scan of the object with the given label.
|
RegionOfInterest |
getRegionOfInterest(L label)
Deprecated.
Get a region of interest optimized to determine point membership
|
Cursor<LabelingType<L>> |
localizingCursor()
Deprecated.
Returns a
RealLocalizable Iterator that calculates its
location at each iteration step. |
Cursor<LabelingType<L>> |
localizingCursor(Interval interval)
Deprecated.
|
Object |
subIntervalIterationOrder(Interval interval)
Deprecated.
Returns the iteration order given the interval.
|
boolean |
supportsOptimizedCursor(Interval interval)
Deprecated.
|
create, firstElement, iterationOrder, iterator, randomAccess, randomAccess, size
dimension, dimensions, max, max, max, min, min, min
getSource, numDimensions, realMax, realMax, realMax, realMin, realMin, realMin
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAt, getAt, getAt, randomAccess, randomAccess
firstElement, iterationOrder, size
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<L extends Comparable<L>,? extends Labeling<L extends Comparable<L>>> m_strategy
public LabelingView(RandomAccessibleInterval<LabelingType<L>> in, LabelingFactory<L> fac)
in
- the RandomAccessibleInterval
to be wrappedfac
- factory to create a new Labeling
public boolean getExtents(L label, long[] minExtents, long[] maxExtents)
Labeling
getExtents
in interface Labeling<L extends Comparable<L>>
label
- - find pixels with this labelpublic boolean getRasterStart(L label, long[] start)
Labeling
getRasterStart
in interface Labeling<L extends Comparable<L>>
public long getArea(L label)
Labeling
getArea
in interface Labeling<L extends Comparable<L>>
label
- - label for object in questionpublic Collection<L> getLabels()
Labeling
getLabels
in interface Labeling<L extends Comparable<L>>
public Cursor<LabelingType<L>> cursor()
IterableRealInterval
Returns a RealCursor
that iterates with optimal speed without
calculating the location at each iteration step. Localization is
performed on demand.
Use this where localization is required rarely/ not for each iteration.
cursor
in interface IterableInterval<LabelingType<L extends Comparable<L>>>
cursor
in interface IterableRealInterval<LabelingType<L extends Comparable<L>>>
cursor
in class IterableRandomAccessibleInterval<LabelingType<L extends Comparable<L>>>
public Cursor<LabelingType<L>> localizingCursor()
IterableRealInterval
Returns a RealLocalizable
Iterator
that calculates its
location at each iteration step. That is, localization is performed with
optimal speed.
Use this where localization is required often/ for each iteration.
localizingCursor
in interface IterableInterval<LabelingType<L extends Comparable<L>>>
localizingCursor
in interface IterableRealInterval<LabelingType<L extends Comparable<L>>>
localizingCursor
in class IterableRandomAccessibleInterval<LabelingType<L extends Comparable<L>>>
public RegionOfInterest getRegionOfInterest(L label)
Labeling
getRegionOfInterest
in interface Labeling<L extends Comparable<L>>
label
- The ROI will represent the area labeled with this labelpublic IterableRegionOfInterest getIterableRegionOfInterest(L label)
Labeling
getIterableRegionOfInterest
in interface Labeling<L extends Comparable<L>>
public Labeling<L> copy()
Labeling
copy
in interface Labeling<L extends Comparable<L>>
public <LL extends Comparable<LL>> LabelingFactory<LL> factory()
Labeling
factory
in interface Labeling<L extends Comparable<L>>
public boolean supportsOptimizedCursor(Interval interval)
SubIntervalIterable
supportsOptimizedCursor
in interface SubIntervalIterable<LabelingType<L extends Comparable<L>>>
interval
- to be checkedCursor
can be optimized given the
Interval
public Object subIntervalIterationOrder(Interval interval)
SubIntervalIterable
subIntervalIterationOrder
in interface SubIntervalIterable<LabelingType<L extends Comparable<L>>>
interval
- Interval
over which to iterateIterableRealInterval
public Cursor<LabelingType<L>> cursor(Interval interval)
SubIntervalIterable
cursor
in interface SubIntervalIterable<LabelingType<L extends Comparable<L>>>
interval
- Interval
over which to iterateCursor
public Cursor<LabelingType<L>> localizingCursor(Interval interval)
SubIntervalIterable
localizingCursor
in interface SubIntervalIterable<LabelingType<L extends Comparable<L>>>
interval
- Interval
over which to iterateCursor
Copyright © 2015–2022 ImgLib2. All rights reserved.