T - some BooleanType indicating containment in regionpublic interface PositionableIterableRegion<T extends BooleanType<T>> extends IterableRegion<T>, Localizable, Positionable
IterableRegion that can be moved around.
The iterable view of inside() pixels can also be moved around. Its
position is the same as the position of this PositionableIterableRegion. Moving one will also move the other.
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 |
|---|---|
PositionableIterableRegion<T> |
copy()
Make a copy of this
PositionableIterableInterval which can be
positioned independently. |
PositionableIterableInterval<Void> |
inside()
Get an
PositionableIterableInterval view of only the pixels contained in the
region (having value true). |
PositionableLocalizable |
origin()
Get the
Positionable, Localizable origin of this
interval. |
cursor, iterationOrder, localizingCursor, sizegetAt, 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, verifyAllPositivenumDimensionsgetDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, localize, positionAsLongArray, positionAsPointlocalize, localize, positionAsDoubleArray, positionAsRealPointbck, fwd, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPositionPositionableIterableInterval<Void> inside()
PositionableIterableInterval view of only the pixels contained in the
region (having value true).
The position of the inside() view is the same as the position of
this PositionableIterableRegion. Moving one will also move the
other.
inside in interface IterableRegion<T extends BooleanType<T>>PositionableLocalizable origin()
Positionable, Localizable origin of this
interval.
The origin is the relative offset of the position to the minimum. For
example if a positionable (bitmask) region is made from a BitType
image with a circular pattern, then it is more natural if the region
position refers to the center of the pattern instead of the upper left
corner of the BitType image. This can be achieved by positioning
the origin.
Assume a region is created from a 9x9 bitmask. The region initially has
min=(0,0), max=(8,8), position=(0,0). Because both position and min are
(0,0), initially origin=(0,0). Now assume the origin is moved to the
center of the bitmask using
origin().setPosition(new int[]{4,4}). After this,
min=(-4,-4), max=(4,4), position=(0,0), and origin=(4,4).
PositionableIterableRegion<T> copy()
PositionableIterableInterval which can be
positioned independently.Copyright © 2009–2024 ImgLib2. All rights reserved.