Class NLinearInterpolatorARGB
java.lang.Object
net.imglib2.AbstractEuclideanSpace
net.imglib2.position.transform.AbstractPositionableTransform<RandomAccess<ARGBType>>
net.imglib2.position.transform.Floor<RandomAccess<ARGBType>>
net.imglib2.interpolation.randomaccess.NLinearInterpolator<ARGBType>
net.imglib2.interpolation.randomaccess.NLinearInterpolatorARGB
- All Implemented Interfaces:
EuclideanSpace,Positionable,RealLocalizable,RealPositionable,RealRandomAccess<ARGBType>,Sampler<ARGBType>
N-linear interpolator for ARGB values with overflow check.
- Author:
- Stephan Saalfeld
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected doubleprotected doubleprotected doubleprotected doubleFields inherited from class net.imglib2.interpolation.randomaccess.NLinearInterpolator
accumulator, code, tmp, weightsFields inherited from class net.imglib2.position.transform.AbstractPositionableTransform
discrete, position, targetFields inherited from class net.imglib2.AbstractEuclideanSpace
n -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNLinearInterpolatorARGB(NLinearInterpolatorARGB interpolator) protectedNLinearInterpolatorARGB(RandomAccessible<ARGBType> randomAccessible) protectedNLinearInterpolatorARGB(RandomAccessible<ARGBType> randomAccessible, ARGBType type) -
Method Summary
Methods inherited from class net.imglib2.interpolation.randomaccess.NLinearInterpolator
fillWeightsMethods inherited from class net.imglib2.position.transform.Floor
floor, floor, floor, floor, floor, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPositionMethods inherited from class net.imglib2.position.transform.AbstractPositionableTransform
bck, fwd, getDoublePosition, getFloatPosition, localize, localize, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition, toStringMethods inherited from class net.imglib2.AbstractEuclideanSpace
numDimensionsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface net.imglib2.EuclideanSpace
numDimensionsMethods inherited from interface net.imglib2.Positionable
bck, fwd, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPositionMethods inherited from interface net.imglib2.RealLocalizable
getDoublePosition, getFloatPosition, localize, localizeMethods inherited from interface net.imglib2.RealPositionable
move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition
-
Field Details
-
accA
protected double accA -
accR
protected double accR -
accG
protected double accG -
accB
protected double accB
-
-
Constructor Details
-
NLinearInterpolatorARGB
-
NLinearInterpolatorARGB
-
NLinearInterpolatorARGB
-
-
Method Details
-
get
Get the interpolated value at the current position.To visit the pixels that contribute to an interpolated value, we move in a (binary-reflected) Gray code pattern, such that only one dimension of the target position is modified per move.
-
copy
- Specified by:
copyin interfaceSampler<ARGBType>- Overrides:
copyin classNLinearInterpolator<ARGBType>- 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)
-
copyRealRandomAccess
- Specified by:
copyRealRandomAccessin interfaceRealRandomAccess<ARGBType>- Overrides:
copyRealRandomAccessin classNLinearInterpolator<ARGBType>
-