net.sourceforge.jiu.geometry

Class ResampleFilter

Known Direct Subclasses:
BellFilter, BoxFilter, BSplineFilter, HermiteFilter, Lanczos3Filter, MitchellFilter, TriangleFilter

public abstract class ResampleFilter
extends java.lang.Object

Abstract base class for filters to be used with the Resample operation.
Author:
Marco Schmidt
Since:
0.10.0

Field Summary

private float
samplingRadius

Constructor Summary

ResampleFilter()
This empty constructor sets the sampling radius to the recommended sampling radius as provided by getRecommendedSamplingRadius().

Method Summary

abstract float
apply(float value)
Returns the weight of the sample at the distance given by the argument value.
abstract String
getName()
Return the name of this filter.
abstract float
getRecommendedSamplingRadius()
Returns a recommendation for the sampling radius to be used with this filter.
float
getSamplingRadius()
Returns the sampling radius of this object.
void
setSamplingRadius(float newValue)
Sets the sampling radius to a new value.

Field Details

samplingRadius

private float samplingRadius

Constructor Details

ResampleFilter

public ResampleFilter()

Method Details

apply

public abstract float apply(float value)
Returns the weight of the sample at the distance given by the argument value.

getName

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

getRecommendedSamplingRadius

public abstract float getRecommendedSamplingRadius()
Returns:
the recommended sampling radius to be used with this filter

getSamplingRadius

public float getSamplingRadius()
Returns the sampling radius of this object.

setSamplingRadius

public void setSamplingRadius(float newValue)
Parameters:
newValue - new sampling radius to be used with this object