Package net.imglib2.outofbounds
Class OutOfBoundsRandomValue<T extends RealType<T>>
java.lang.Object
net.imglib2.AbstractEuclideanSpace
net.imglib2.AbstractLocalizable
net.imglib2.outofbounds.AbstractOutOfBoundsValue<T>
net.imglib2.outofbounds.OutOfBoundsRandomValue<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
EuclideanSpace
,Localizable
,Bounded
,OutOfBounds<T>
,Positionable
,RandomAccess<T>
,RealLocalizable
,Sampler<T>
Return a random value in a certain range when outside of the Interval
- Author:
- Stephan Preibisch, Stephan Saalfeld
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final double
protected final double
protected final double
protected final Random
Fields inherited from class net.imglib2.outofbounds.AbstractOutOfBoundsValue
dimension, dimIsOutOfBounds, isOutOfBounds, max, min, sampler
Fields inherited from class net.imglib2.AbstractLocalizable
position
Fields inherited from class net.imglib2.AbstractEuclideanSpace
n
-
Constructor Summary
ConstructorsModifierConstructorDescriptionOutOfBoundsRandomValue
(F f, T value, Random rnd, double min, double max) protected
OutOfBoundsRandomValue
(OutOfBoundsRandomValue<T> outOfBounds) -
Method Summary
Modifier and TypeMethodDescriptionfinal OutOfBoundsRandomValue
<T> copy()
final OutOfBoundsRandomValue
<T> final T
get()
Access the actual T instance providing access to a pixel, sub-pixel or integral region value theSampler
points at.Methods inherited from class net.imglib2.outofbounds.AbstractOutOfBoundsValue
bck, fwd, isOutOfBounds, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition
Methods inherited from class net.imglib2.AbstractLocalizable
getDoublePosition, getFloatPosition, getIntPosition, getLongPosition, localize, localize, localize, localize
Methods inherited from class net.imglib2.AbstractEuclideanSpace
numDimensions
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.imglib2.EuclideanSpace
numDimensions
Methods inherited from interface net.imglib2.Localizable
getIntPosition, getLongPosition, localize, localize
Methods inherited from interface net.imglib2.RealLocalizable
getDoublePosition, getFloatPosition, localize, localize
-
Field Details
-
minValue
protected final double minValue -
maxValue
protected final double maxValue -
range
protected final double range -
rnd
-
-
Constructor Details
-
OutOfBoundsRandomValue
-
OutOfBoundsRandomValue
-
-
Method Details
-
get
Description copied from interface:Sampler
Access the actual T instance providing access to a pixel, sub-pixel or integral region value theSampler
points at. -
copy
- Returns:
- - A new
Sampler
in 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 anArrayCursor
for example)
-
copyRandomAccess
-