T
- public final class OutOfBoundsMirrorDoubleBoundary<T> extends AbstractOutOfBoundsMirror<T>
Example:
width=4
|<-inside->|
x: -9 -8 -7 -6 -5 -4 -3 -2 -1 0 1 2 3 4 5 6 7 8 9
f(x): 0 0 1 2 3 3 2 1 0 0 1 2 3 3 2 1 0 0 1
dimension, dimIsOutOfBounds, inc, isOutOfBounds, min, n, outOfBoundsRandomAccess, p, zeroMinPos
Modifier | Constructor and Description |
---|---|
|
OutOfBoundsMirrorDoubleBoundary(F f) |
protected |
OutOfBoundsMirrorDoubleBoundary(OutOfBoundsMirrorDoubleBoundary<T> outOfBounds) |
Modifier and Type | Method and Description |
---|---|
void |
bck(int d)
Move by -1 in one dimension.
|
OutOfBoundsMirrorDoubleBoundary<T> |
copy() |
OutOfBoundsMirrorDoubleBoundary<T> |
copyRandomAccess() |
void |
fwd(int d)
Move by 1 in one dimension.
|
void |
setPosition(long position,
int d)
Set the position of the element for one dimension.
|
checkOutOfBounds, get, getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, isOutOfBounds, localize, localize, localize, localize, move, move, move, move, move, numDimensions, setPosition, setPosition, setPosition, setPosition, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setPositionAndGet, setPositionAndGet, setPositionAndGet
localize, positionAsLongArray, positionAsPoint
localize, positionAsDoubleArray, positionAsRealPoint
protected OutOfBoundsMirrorDoubleBoundary(OutOfBoundsMirrorDoubleBoundary<T> outOfBounds)
public OutOfBoundsMirrorDoubleBoundary(F f)
public final OutOfBoundsMirrorDoubleBoundary<T> copy()
copy
in interface OutOfBounds<T>
copy
in interface Sampler<T>
copy
in class AbstractOutOfBoundsMirror<T>
Sampler
in the same state accessing the same
values.
It does NOT copy T, just the state of the Sampler
.
Otherwise use T.copy() if available.
Sampler.copy().get() == Sampler.get(), i.e. both hold the same
value, not necessarily the same instance (this is the case for an
ArrayCursor
for example)public final OutOfBoundsMirrorDoubleBoundary<T> copyRandomAccess()
public final void fwd(int d)
Positionable
d
- dimensionpublic final void bck(int d)
Positionable
d
- dimensionpublic final void setPosition(long position, int d)
Positionable
position
- absolute position in dimension dd
- dimensionCopyright © 2015–2022 ImgLib2. All rights reserved.