public class BSplineCoefficientsInterpolatorOdd<T extends RealType<T>> extends Floor<RandomAccess<Neighborhood<T>>> implements BSplineCoefficientsInterpolator<T>
Modifier and Type | Field and Description |
---|---|
protected int |
bsplineOrder |
protected RectangleShape |
shape |
discrete, position, target
n
Constructor and Description |
---|
BSplineCoefficientsInterpolatorOdd(int order,
RandomAccessible<T> coefficients,
T type) |
Modifier and Type | Method and Description |
---|---|
BSplineCoefficientsInterpolatorOdd<T> |
copy() |
T |
get()
Access the actual T instance providing access to a pixel,
sub-pixel or integral region value the
Sampler points at. |
int |
getIntPosition(int d)
Return the current position in a given dimension.
|
long |
getLongPosition(int d)
Return the current position in a given dimension.
|
void |
localize(int[] position)
Write the current position into the passed array.
|
void |
localize(long[] position)
Write the current position into the passed array.
|
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
build, copyRealRandomAccess, create, create, shapeFromOrder
setPositionAndGet, setPositionAndGet, setPositionAndGet
move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition
bck, fwd, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition
numDimensions
getDoublePosition, getFloatPosition, localize, positionAsLongArray, positionAsPoint
localize, localize, localize, positionAsDoubleArray, positionAsRealPoint
protected final int bsplineOrder
protected final RectangleShape shape
public BSplineCoefficientsInterpolatorOdd(int order, RandomAccessible<T> coefficients, T type)
public T get()
Sampler
Sampler
points at.public BSplineCoefficientsInterpolatorOdd<T> copy()
copy
in interface BSplineCoefficientsInterpolator<T extends RealType<T>>
copy
in interface Sampler<T extends RealType<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 long getLongPosition(int d)
Localizable
getLongPosition
in interface Localizable
d
- dimensionpublic int getIntPosition(int d)
Localizable
getIntPosition
in interface Localizable
d
- dimensionpublic void localize(long[] position)
Localizable
localize
in interface Localizable
position
- receives current positionpublic void localize(int[] position)
Localizable
localize
in interface Localizable
position
- receives current positionCopyright © 2015–2022 ImgLib2. All rights reserved.