T - the image typepublic class BSplineInterpolator<T extends net.imglib2.type.numeric.RealType<T>> extends net.imglib2.position.transform.Floor<net.imglib2.RandomAccess<Neighborhood<T>>> implements net.imglib2.RealRandomAccess<T>
BSplineDecomposition. This will be more memory-efficient
though.
See Unser, Aldroubi, and Eden "Fast B-Spline Transforms for Continuous Image
Representation and Interpolation" IEEE PAMI 13(3) 1991.| Modifier and Type | Field and Description |
|---|---|
static double |
ALPHA |
protected boolean |
clipping |
static double |
FACTOR |
static double |
FOURTHIRDS |
static double |
ONESIXTH |
protected int |
radius |
protected RectangleShape |
shape |
static double |
SQRT3 |
static double |
TWOTHIRDS |
protected T |
value |
protected double |
w |
protected double[][] |
weights |
discrete, position, targetn| Modifier | Constructor and Description |
|---|---|
|
BSplineInterpolator(BSplineInterpolator<T> interpolator) |
|
BSplineInterpolator(net.imglib2.RandomAccessible<T> source,
int radius,
boolean clipping) |
protected |
BSplineInterpolator(net.imglib2.RandomAccessibleInterval<T> randomAccessible)
Build a default cubic-bspline interpolator.
|
| Modifier and Type | Method and Description |
|---|---|
BSplineInterpolator<T> |
copy() |
BSplineInterpolator<T> |
copyRealRandomAccess() |
static double |
cubicCardinalSpline(double x,
int width) |
static double |
evaluate3Normalized(double u) |
protected void |
fillWeights() |
T |
get() |
T |
getType() |
floor, floor, floor, floor, floor, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPositionbck, fwd, getDoublePosition, getFloatPosition, localize, localize, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPosition, toStringnumDimensionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitsetPositionAndGet, setPositionAndGet, setPositionAndGetgetDoublePosition, getFloatPosition, localize, localize, localize, positionAsDoubleArray, positionAsRealPointmove, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPositionbck, fwd, move, move, move, move, move, setPosition, setPosition, setPosition, setPosition, setPositionnumDimensionspublic static final double SQRT3
public static final double ALPHA
public static final double FACTOR
public static final double ONESIXTH
public static final double TWOTHIRDS
public static final double FOURTHIRDS
protected double w
protected final T extends net.imglib2.type.numeric.RealType<T> value
protected final double[][] weights
protected final boolean clipping
protected final int radius
protected final RectangleShape shape
public BSplineInterpolator(BSplineInterpolator<T> interpolator)
public BSplineInterpolator(net.imglib2.RandomAccessible<T> source, int radius, boolean clipping)
protected BSplineInterpolator(net.imglib2.RandomAccessibleInterval<T> randomAccessible)
randomAccessible - the random accessiblepublic T get()
get in interface net.imglib2.Sampler<T extends net.imglib2.type.numeric.RealType<T>>public T getType()
getType in interface net.imglib2.Sampler<T extends net.imglib2.type.numeric.RealType<T>>getType in interface net.imglib2.Typed<T extends net.imglib2.type.numeric.RealType<T>>protected void fillWeights()
public BSplineInterpolator<T> copy()
copy in interface net.imglib2.RealRandomAccess<T extends net.imglib2.type.numeric.RealType<T>>copy in interface net.imglib2.Sampler<T extends net.imglib2.type.numeric.RealType<T>>public BSplineInterpolator<T> copyRealRandomAccess()
copyRealRandomAccess in interface net.imglib2.RealRandomAccess<T extends net.imglib2.type.numeric.RealType<T>>public static double evaluate3Normalized(double u)
public static double cubicCardinalSpline(double x,
int width)
Copyright © 2009–2025 ImgLib2. All rights reserved.