T
- public class ClampingNLinearInterpolatorVolatileARGB<T extends AbstractVolatileNumericType<ARGBType,T>> extends NLinearInterpolator<T>
Modifier and Type | Field and Description |
---|---|
protected double |
accA |
protected double |
accB |
protected double |
accG |
protected double |
accR |
protected boolean |
valid |
accumulator, code, tmp, weights
discrete, position, target
n
Modifier | Constructor and Description |
---|---|
protected |
ClampingNLinearInterpolatorVolatileARGB(ClampingNLinearInterpolatorVolatileARGB<T> interpolator) |
protected |
ClampingNLinearInterpolatorVolatileARGB(RandomAccessible<T> randomAccessible) |
protected |
ClampingNLinearInterpolatorVolatileARGB(RandomAccessible<T> randomAccessible,
T type) |
Modifier and Type | Method and Description |
---|---|
ClampingNLinearInterpolatorVolatileARGB<T> |
copy() |
ClampingNLinearInterpolatorVolatileARGB<T> |
copyRealRandomAccess() |
T |
get()
Get the interpolated value at the current position.
|
fillWeights
floor, floor, floor, floor, floor, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition
bck, fwd, getDoublePosition, getFloatPosition, localize, localize, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition, toString
numDimensions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
setPositionAndGet, setPositionAndGet, setPositionAndGet
getDoublePosition, getFloatPosition, localize, localize, localize, positionAsDoubleArray, positionAsRealPoint
move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition
bck, fwd, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition
numDimensions
protected double accA
protected double accR
protected double accG
protected double accB
protected boolean valid
protected ClampingNLinearInterpolatorVolatileARGB(ClampingNLinearInterpolatorVolatileARGB<T> interpolator)
protected ClampingNLinearInterpolatorVolatileARGB(RandomAccessible<T> randomAccessible, T type)
protected ClampingNLinearInterpolatorVolatileARGB(RandomAccessible<T> randomAccessible)
public T get()
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.
get
in interface Sampler<T extends AbstractVolatileNumericType<ARGBType,T>>
get
in class NLinearInterpolator<T extends AbstractVolatileNumericType<ARGBType,T>>
public ClampingNLinearInterpolatorVolatileARGB<T> copy()
copy
in interface Sampler<T extends AbstractVolatileNumericType<ARGBType,T>>
copy
in class NLinearInterpolator<T extends AbstractVolatileNumericType<ARGBType,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 ClampingNLinearInterpolatorVolatileARGB<T> copyRealRandomAccess()
copyRealRandomAccess
in interface RealRandomAccess<T extends AbstractVolatileNumericType<ARGBType,T>>
copyRealRandomAccess
in class NLinearInterpolator<T extends AbstractVolatileNumericType<ARGBType,T>>
Copyright © 2015–2022 ImgLib2. All rights reserved.