public class NLinearInterpolatorARGB extends NLinearInterpolator<ARGBType>
Modifier and Type | Field and Description |
---|---|
protected double |
accA |
protected double |
accB |
protected double |
accG |
protected double |
accR |
accumulator, code, tmp, weights
discrete, position, target
n
Modifier | Constructor and Description |
---|---|
protected |
NLinearInterpolatorARGB(NLinearInterpolatorARGB interpolator) |
protected |
NLinearInterpolatorARGB(RandomAccessible<ARGBType> randomAccessible) |
protected |
NLinearInterpolatorARGB(RandomAccessible<ARGBType> randomAccessible,
ARGBType type) |
Modifier and Type | Method and Description |
---|---|
NLinearInterpolatorARGB |
copy() |
NLinearInterpolatorARGB |
copyRealRandomAccess() |
ARGBType |
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 NLinearInterpolatorARGB(NLinearInterpolatorARGB interpolator)
protected NLinearInterpolatorARGB(RandomAccessible<ARGBType> randomAccessible, ARGBType type)
protected NLinearInterpolatorARGB(RandomAccessible<ARGBType> randomAccessible)
public ARGBType 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.
public NLinearInterpolatorARGB copy()
copy
in interface Sampler<ARGBType>
copy
in class NLinearInterpolator<ARGBType>
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 NLinearInterpolatorARGB copyRealRandomAccess()
copyRealRandomAccess
in interface RealRandomAccess<ARGBType>
copyRealRandomAccess
in class NLinearInterpolator<ARGBType>
Copyright © 2015–2022 ImgLib2. All rights reserved.