net.sourceforge.jiu.geometry

Class Lanczos3Filter


public class Lanczos3Filter
extends ResampleFilter

The Lanczos 3 resample filter.
Author:
Marco Schmidt
Since:
0.10.0
See Also:
Resample, ResampleFilter

Field Summary

Fields inherited from class net.sourceforge.jiu.geometry.ResampleFilter

samplingRadius

Method Summary

float
apply(float value)
Returns the weight of the sample at the distance given by the argument value.
String
getName()
Return the name of this filter.
float
getRecommendedSamplingRadius()
Returns a recommendation for the sampling radius to be used with this filter.
private double
sinc(double value)

Methods inherited from class net.sourceforge.jiu.geometry.ResampleFilter

apply, getName, getRecommendedSamplingRadius, getSamplingRadius, setSamplingRadius

Method Details

apply

public float apply(float value)
Returns the weight of the sample at the distance given by the argument value.
Overrides:
apply in interface ResampleFilter

getName

public String getName()
Return the name of this filter. Should avoid natural language words if possible.
Overrides:
getName in interface ResampleFilter
Returns:
String with filter name

getRecommendedSamplingRadius

public float getRecommendedSamplingRadius()
Overrides:
getRecommendedSamplingRadius in interface ResampleFilter
Returns:
the recommended sampling radius to be used with this filter

sinc

private double sinc(double value)