Package net.imglib2.outofbounds
Class OutOfBoundsMirrorSingleBoundary<T>
- java.lang.Object
-
- net.imglib2.outofbounds.AbstractOutOfBoundsMirror<T>
-
- net.imglib2.outofbounds.OutOfBoundsMirrorSingleBoundary<T>
-
- Type Parameters:
T-
- All Implemented Interfaces:
EuclideanSpace,Localizable,Bounded,OutOfBounds<T>,Positionable,RandomAccess<T>,RealLocalizable,Sampler<T>,Typed<T>
- Direct Known Subclasses:
OutOfBoundsMirrorExpWindowing
public class OutOfBoundsMirrorSingleBoundary<T> extends AbstractOutOfBoundsMirror<T>
Coordinates out of image bounds are mirrored at boundary coordinates. Boundary pixels are not repeated. Note that this requires that all dimensions of the source (F f) must be > 1.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
-
-
Field Summary
-
Fields inherited from class net.imglib2.outofbounds.AbstractOutOfBoundsMirror
dimension, dimIsOutOfBounds, inc, isOutOfBounds, min, n, outOfBoundsRandomAccess, p, zeroMinPos
-
-
Constructor Summary
Constructors Constructor Description OutOfBoundsMirrorSingleBoundary(F f)OutOfBoundsMirrorSingleBoundary(OutOfBoundsMirrorSingleBoundary<T> outOfBounds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbck(int d)Move by -1 in one dimension.OutOfBoundsMirrorSingleBoundary<T>copy()voidfwd(int d)Move by 1 in one dimension.voidsetPosition(long position, int d)Set the position of the element for one dimension.-
Methods inherited from class net.imglib2.outofbounds.AbstractOutOfBoundsMirror
checkOutOfBounds, get, getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, getType, isOutOfBounds, localize, localize, localize, localize, move, move, move, move, move, numDimensions, setPosition, setPosition, setPosition, setPosition, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.imglib2.Localizable
localize, localize, positionAsLongArray, positionAsPoint
-
Methods inherited from interface net.imglib2.RandomAccess
copyRandomAccess, setPositionAndGet, setPositionAndGet, setPositionAndGet
-
Methods inherited from interface net.imglib2.RealLocalizable
positionAsDoubleArray, positionAsRealPoint
-
-
-
-
Constructor Detail
-
OutOfBoundsMirrorSingleBoundary
public OutOfBoundsMirrorSingleBoundary(OutOfBoundsMirrorSingleBoundary<T> outOfBounds)
-
OutOfBoundsMirrorSingleBoundary
public OutOfBoundsMirrorSingleBoundary(F f)
-
-
Method Detail
-
copy
public OutOfBoundsMirrorSingleBoundary<T> copy()
- Specified by:
copyin interfaceOutOfBounds<T>- Specified by:
copyin interfaceRandomAccess<T>- Specified by:
copyin interfaceSampler<T>- Specified by:
copyin classAbstractOutOfBoundsMirror<T>- Returns:
- - A new
Samplerin the same state accessing the same values. It does NOT copy T, just the state of theSampler. 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 anArrayCursorfor example)
-
fwd
public final void fwd(int d)
Description copied from interface:PositionableMove by 1 in one dimension.- Parameters:
d- dimension
-
bck
public final void bck(int d)
Description copied from interface:PositionableMove by -1 in one dimension.- Parameters:
d- dimension
-
setPosition
public final void setPosition(long position, int d)Description copied from interface:PositionableSet the position of the element for one dimension.- Parameters:
position- absolute position in dimension dd- dimension
-
-