Class LanczosInterpolatorFactory<T extends RealType<T>>
- java.lang.Object
-
- net.imglib2.interpolation.randomaccess.LanczosInterpolatorFactory<T>
-
- All Implemented Interfaces:
InterpolatorFactory<T,RandomAccessible<T>>
public class LanczosInterpolatorFactory<T extends RealType<T>> extends java.lang.Object implements InterpolatorFactory<T,RandomAccessible<T>>
TODO
-
-
Constructor Summary
Constructors Constructor Description LanczosInterpolatorFactory()
Creates a newLanczosInterpolatorFactory
with standard parameters (do clipping, alpha=3)LanczosInterpolatorFactory(double min, double max)
Creates a newLanczosInterpolatorFactory
using the Lanczos (sinc) interpolation in a certain windowLanczosInterpolatorFactory(int alpha, boolean clipping)
Creates a newLanczosInterpolatorFactory
using the Lanczos (sinc) interpolation in a certain windowLanczosInterpolatorFactory(int alpha, double min, double max)
Creates a newLanczosInterpolatorFactory
using the Lanczos (sinc) interpolation in a certain window
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LanczosInterpolator<T>
create(RandomAccessible<T> randomAccessible)
LanczosInterpolator<T>
create(RandomAccessible<T> randomAccessible, RealInterval interval)
For now, ignore theRealInterval
and returncreate(RandomAccessible)
.int
getAlpha()
boolean
getClipping()
void
setAlpha(int alpha)
Set the rectangular radius of the window for perfoming the lanczos interpolationvoid
setClipping(boolean clipping)
The lanczos-interpolation can create values that are bigger or smaller than the original values, so they can be clipped to the range of theRealType
if wanted
-
-
-
Constructor Detail
-
LanczosInterpolatorFactory
public LanczosInterpolatorFactory(int alpha, boolean clipping)
Creates a newLanczosInterpolatorFactory
using the Lanczos (sinc) interpolation in a certain window- Parameters:
alpha
- the rectangular radius of the window for perfoming the lanczos interpolationclipping
- the lanczos-interpolation can create values that are bigger or smaller than the original values, so they can be clipped to the range of theType
if wanted
-
LanczosInterpolatorFactory
public LanczosInterpolatorFactory(int alpha, double min, double max)
Creates a newLanczosInterpolatorFactory
using the Lanczos (sinc) interpolation in a certain window- Parameters:
alpha
- the rectangular radius of the window for perfoming the lanczos interpolationmin
- the lanczos-interpolation can create values that are bigger or smaller than the original values, so they can be clipped to the range of the if wantedmax
- the lanczos-interpolation can create values that are bigger or smaller than the original values, so they can be clipped to the range of the if wanted
-
LanczosInterpolatorFactory
public LanczosInterpolatorFactory(double min, double max)
Creates a newLanczosInterpolatorFactory
using the Lanczos (sinc) interpolation in a certain window- Parameters:
min
- the lanczos-interpolation can create values that are bigger or smaller than the original values, so they can be clipped to the range of the if wantedmax
- the lanczos-interpolation can create values that are bigger or smaller than the original values, so they can be clipped to the range of the if wanted
-
LanczosInterpolatorFactory
public LanczosInterpolatorFactory()
Creates a newLanczosInterpolatorFactory
with standard parameters (do clipping, alpha=3)
-
-
Method Detail
-
create
public LanczosInterpolator<T> create(RandomAccessible<T> randomAccessible)
- Specified by:
create
in interfaceInterpolatorFactory<T extends RealType<T>,RandomAccessible<T extends RealType<T>>>
-
create
public LanczosInterpolator<T> create(RandomAccessible<T> randomAccessible, RealInterval interval)
For now, ignore theRealInterval
and returncreate(RandomAccessible)
.- Specified by:
create
in interfaceInterpolatorFactory<T extends RealType<T>,RandomAccessible<T extends RealType<T>>>
-
setAlpha
public void setAlpha(int alpha)
Set the rectangular radius of the window for perfoming the lanczos interpolation- Parameters:
alpha
- radius
-
setClipping
public void setClipping(boolean clipping)
The lanczos-interpolation can create values that are bigger or smaller than the original values, so they can be clipped to the range of theRealType
if wanted- Parameters:
clipping
- perform clipping (true)
-
getAlpha
public int getAlpha()
- Returns:
- rectangular radius of the window for perfoming the lanczos interpolation
-
getClipping
public boolean getClipping()
- Returns:
- if clipping to the
RealType
range will be performed
-
-