public class LanczosInterpolatorFactory<T extends RealType<T>> extends InterpolatorFactory<T>
outOfBoundsStrategyFactory
Constructor and Description |
---|
LanczosInterpolatorFactory(OutOfBoundsStrategyFactory<T> outOfBoundsStrategyFactory)
Creates a new
LanczosInterpolatorFactory with standard parameters (do clipping, alpha=5) |
LanczosInterpolatorFactory(OutOfBoundsStrategyFactory<T> outOfBoundsStrategyFactory,
int alpha,
boolean clipping)
Creates a new
LanczosInterpolatorFactory using the Lanczos (sinc) interpolation in a certain window |
Modifier and Type | Method and Description |
---|---|
LanczosInterpolator<T> |
createInterpolator(Image<T> img) |
int |
getAlpha() |
boolean |
getClipping() |
void |
setAlpha(int alpha)
Set the rectangular radius of the window for perfoming the lanczos interpolation
|
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 the
RealType if wanted |
getErrorMessage, getOutOfBoundsStrategyFactory, printProperties, setOutOfBoundsStrategyFactory, setParameters
public LanczosInterpolatorFactory(OutOfBoundsStrategyFactory<T> outOfBoundsStrategyFactory, int alpha, boolean clipping)
LanczosInterpolatorFactory
using the Lanczos (sinc) interpolation in a certain windowoutOfBoundsStrategyFactory
- - the OutOfBoundsStrategyFactory
to usealpha
- - 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 the Type
if wantedpublic LanczosInterpolatorFactory(OutOfBoundsStrategyFactory<T> outOfBoundsStrategyFactory)
LanczosInterpolatorFactory
with standard parameters (do clipping, alpha=5)outOfBoundsStrategyFactory
- - the OutOfBoundsStrategyFactory
to usepublic void setAlpha(int alpha)
alpha
- - radiuspublic void setClipping(boolean clipping)
RealType
if wantedclipping
- - perform clipping (true)public int getAlpha()
public boolean getClipping()
RealType
range will be performedpublic LanczosInterpolator<T> createInterpolator(Image<T> img)
createInterpolator
in class InterpolatorFactory<T extends RealType<T>>
Copyright © 2015–2021 Fiji. All rights reserved.