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, samplerpositionn| 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, setPositiongetDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, localizenumDimensionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetPositionAndGet, setPositionAndGet, setPositionAndGetgetDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, positionAsLongArray, positionAsPointlocalize, localize, localize, positionAsDoubleArray, positionAsRealPointnumDimensionsprotected final double minValue
protected final double maxValue
protected final double range
protected final Random rnd
protected OutOfBoundsRandomValue(OutOfBoundsRandomValue<T> outOfBounds)
public final T get()
SamplerSampler 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.