T
- public class OutOfBoundsMirrorSingleBoundary<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): 3 2 1 0 1 2 3 2 1 0 1 2 3 2 1 0 1 2 3
dimension, dimIsOutOfBounds, inc, isOutOfBounds, min, n, outOfBoundsRandomAccess, p, zeroMinPos
Constructor and Description |
---|
OutOfBoundsMirrorSingleBoundary(F f) |
OutOfBoundsMirrorSingleBoundary(OutOfBoundsMirrorSingleBoundary<T> outOfBounds) |
Modifier and Type | Method and Description |
---|---|
void |
bck(int d)
Move by -1 in one dimension.
|
OutOfBoundsMirrorSingleBoundary<T> |
copy() |
OutOfBoundsMirrorSingleBoundary<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
public OutOfBoundsMirrorSingleBoundary(OutOfBoundsMirrorSingleBoundary<T> outOfBounds)
public OutOfBoundsMirrorSingleBoundary(F f)
public OutOfBoundsMirrorSingleBoundary<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 OutOfBoundsMirrorSingleBoundary<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.