public class OutOfBoundsBorder<T> extends AbstractLocalizable implements OutOfBounds<T>
get() returns the nearest within-bounds pixel.| Modifier and Type | Field and Description |
|---|---|
protected long[] |
beforeMin |
protected boolean[] |
dimIsOutOfBounds |
protected boolean |
isOutOfBounds |
protected long[] |
max
Maximum of the wrapped
RandomAccessible. |
protected long[] |
min
Minimum of the wrapped
RandomAccessible. |
protected RandomAccess<T> |
outOfBoundsRandomAccess |
protected long[] |
pastMax |
positionn| Constructor and Description |
|---|
OutOfBoundsBorder(F f) |
OutOfBoundsBorder(OutOfBoundsBorder<T> outOfBounds) |
| Modifier and Type | Method and Description |
|---|---|
void |
bck(int d)
Move by -1 in one dimension.
|
protected void |
checkOutOfBounds() |
OutOfBoundsBorder<T> |
copy() |
OutOfBoundsBorder<T> |
copyRandomAccess() |
void |
fwd(int d)
Move by 1 in one dimension.
|
T |
get()
Access the actual T instance providing access to a pixel,
sub-pixel or integral region value the
Sampler points at. |
boolean |
isOutOfBounds()
True if located out of image bounds.
|
void |
move(int[] distance)
Move the element relative to its current location using an int[] as
distance vector.
|
void |
move(int distance,
int d)
Move the element in one dimension for some distance.
|
void |
move(Localizable localizable)
Move the element relative to its current location using an
Localizable as distance vector. |
void |
move(long[] distance)
Move the element relative to its current location using a long[] as
distance vector.
|
void |
move(long distance,
int d)
Move the element in one dimension for some distance.
|
void |
setPosition(int[] position)
Set the position of the element.
|
void |
setPosition(int position,
int d)
Set the position of the element for one dimension.
|
void |
setPosition(Localizable localizable)
Place the element at the same location as a given
Localizable |
void |
setPosition(long[] position)
Set the position of the element.
|
void |
setPosition(long position,
int d)
Set the position of the element for one dimension.
|
String |
toString() |
getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, localizenumDimensionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetPositionAndGet, setPositionAndGet, setPositionAndGetgetDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, positionAsLongArray, positionAsPointlocalize, localize, localize, positionAsDoubleArray, positionAsRealPointnumDimensionsprotected final RandomAccess<T> outOfBoundsRandomAccess
protected final long[] min
RandomAccessible.protected final long[] beforeMin
protected final long[] max
RandomAccessible.protected final long[] pastMax
protected final boolean[] dimIsOutOfBounds
protected boolean isOutOfBounds
public OutOfBoundsBorder(OutOfBoundsBorder<T> outOfBounds)
public OutOfBoundsBorder(F f)
protected final void checkOutOfBounds()
public boolean isOutOfBounds()
BoundedisOutOfBounds in interface Boundedpublic T get()
SamplerSampler points at.public final OutOfBoundsBorder<T> copy()
copy in interface OutOfBounds<T>copy in interface Sampler<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 OutOfBoundsBorder<T> copyRandomAccess()
copyRandomAccess in interface RandomAccess<T>public final void fwd(int d)
Positionablefwd in interface Positionabled - dimensionpublic final void bck(int d)
Positionablebck in interface Positionabled - dimensionpublic final void setPosition(long position,
int d)
PositionablesetPosition in interface Positionableposition - absolute position in dimension dd - dimensionpublic void move(long distance,
int d)
Positionablemove in interface Positionabledistance - relative offset in dimension dd - dimensionpublic void move(int distance,
int d)
Positionablemove in interface Positionabledistance - relative offset in dimension dd - dimensionpublic void move(Localizable localizable)
PositionableLocalizable as distance vector.move in interface Positionablelocalizable - relative offset, EuclideanSpace.numDimensions() must be
≥ EuclideanSpace.numDimensions()public void move(int[] distance)
Positionablemove in interface Positionabledistance - relative offset, length must be ≥ EuclideanSpace.numDimensions()public void move(long[] distance)
Positionablemove in interface Positionabledistance - relative offset, length must be ≥ EuclideanSpace.numDimensions()public void setPosition(int position,
int d)
PositionablesetPosition in interface Positionableposition - absolute position in dimension dd - dimensionpublic void setPosition(Localizable localizable)
PositionableLocalizablesetPosition in interface Positionablelocalizable - absolute position, EuclideanSpace.numDimensions() must be
≥ EuclideanSpace.numDimensions()public void setPosition(int[] position)
PositionablesetPosition in interface Positionableposition - absolute position, length must be ≥
EuclideanSpace.numDimensions()public void setPosition(long[] position)
PositionablesetPosition in interface Positionableposition - absolute position, length must be ≥
EuclideanSpace.numDimensions()Copyright © 2015–2022 ImgLib2. All rights reserved.