T
- some BooleanType
indicating containment in regionpublic interface IterableRegion<T extends BooleanType<T>> extends IterableInterval<Void>, 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 indicated by
IterableInterval<Void>
, i.e., 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.
cursor, localizingCursor
firstElement, iterationOrder, size
forEach, iterator, spliterator
getAt, getAt, getAt, randomAccess, randomAccess
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
Copyright © 2015–2022 ImgLib2. All rights reserved.