T
- public class OutOfBoundsRandomValue<T extends RealType<T>> extends AbstractOutOfBoundsValue<T>
Modifier and Type | Field and Description |
---|---|
protected double |
maxValue |
protected double |
minValue |
protected double |
range |
protected Random |
rnd |
dimension, dimIsOutOfBounds, isOutOfBounds, max, min, sampler
position
n
Modifier | Constructor and Description |
---|---|
|
OutOfBoundsRandomValue(F f,
T value,
Random rnd,
double min,
double max) |
protected |
OutOfBoundsRandomValue(OutOfBoundsRandomValue<T> outOfBounds) |
Modifier and Type | Method and Description |
---|---|
OutOfBoundsRandomValue<T> |
copy() |
OutOfBoundsRandomValue<T> |
copyRandomAccess() |
T |
get()
Access the actual T instance providing access to a pixel,
sub-pixel or integral region value the
Sampler points at. |
bck, fwd, isOutOfBounds, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition
getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, localize
numDimensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setPositionAndGet, setPositionAndGet, setPositionAndGet
getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, positionAsLongArray, positionAsPoint
localize, localize, localize, positionAsDoubleArray, positionAsRealPoint
numDimensions
protected final double minValue
protected final double maxValue
protected final double range
protected final Random rnd
protected OutOfBoundsRandomValue(OutOfBoundsRandomValue<T> outOfBounds)
public final T get()
Sampler
Sampler
points at.public final OutOfBoundsRandomValue<T> copy()
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 OutOfBoundsRandomValue<T> copyRandomAccess()
Copyright © 2015–2022 ImgLib2. All rights reserved.