net.sourceforge.jiu.geometry

Class BoxFilter


public class BoxFilter
extends ResampleFilter

A box filter (also known as nearest neighbor).
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.

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