T - some BooleanType indicating containment in regionpublic interface IterableRegion<T extends BooleanType<T>> extends RandomAccessibleInterval<T>
Specifically, a region is a RandomAccessibleInterval of some
BooleanType having value true for all pixels contained in the
region. The interval is a (not necessarily tight) bounding box of the region,
i.e., it is assumed that all pixels outside the interval have value
false.
Iterating only the pixels contained in the region is done via the IterableInterval<Void> inside(). (The pixel type is Void
because, when iterating, only the coordinates that are visited are
interesting. There is no associated value.)
We put interfaces RandomAccessibleInterval<BooleanType>, extended by
IterableRegion<BooleanType>, extended by
PositionableIterableRegion<BooleanType> into this sequence such that
the Regions methods that "add capabilities" (being iterable,
positionable) can have appropriate result types.
| Modifier and Type | Method and Description |
|---|---|
IterableInterval<Void> |
inside()
Get an
IterableInterval view of only the pixels contained in the
region (having value true). |
cursor, iterationOrder, localizingCursor, size, viewgetAt, getAt, getAt, randomAccess, randomAccesslocalizingSpliterator, spliteratorfirstElement, getType, iterator, parallelStream, streamdimension, max, max, max, maxAsLongArray, maxAsPoint, min, min, min, minAsLongArray, minAsPoint, realMax, realMinmaxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMax, realMin, realMinallPositive, allPositive, dimensions, dimensions, dimensionsAsLongArray, dimensionsAsPoint, verify, verify, verifyAllPositive, verifyAllPositivenumDimensionsIterableInterval<Void> inside()
IterableInterval view of only the pixels contained in the
region (having value true).Copyright © 2009–2024 ImgLib2. All rights reserved.