Package net.sourceforge.jiu.geometry
Class MitchellFilter
- java.lang.Object
-
- net.sourceforge.jiu.geometry.ResampleFilter
-
- net.sourceforge.jiu.geometry.MitchellFilter
-
public class MitchellFilter extends ResampleFilter
The Mitchell resample filter.- Since:
- 0.10.0
- Author:
- Marco Schmidt
- See Also:
Resample
,ResampleFilter
-
-
Constructor Summary
Constructors Constructor Description MitchellFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
getSamplingRadius, setSamplingRadius
-
-
-
-
Field Detail
-
B
private final float B
- See Also:
- Constant Field Values
-
C
private final float C
- See Also:
- Constant Field Values
-
-
Method Detail
-
apply
public float apply(float value)
Description copied from class:ResampleFilter
Returns the weight of the sample at the distance given by the argument value.- Specified by:
apply
in classResampleFilter
-
getName
public String getName()
Description copied from class:ResampleFilter
Return the name of this filter. Should avoid natural language words if possible.- Specified by:
getName
in classResampleFilter
- Returns:
- String with filter name
-
getRecommendedSamplingRadius
public float getRecommendedSamplingRadius()
Description copied from class:ResampleFilter
Returns a recommendation for the sampling radius to be used with this filter. This recommendation value will be the default value for the sampling radius of objects of this class. You can modify it with a call toResampleFilter.setSamplingRadius(float)
.- Specified by:
getRecommendedSamplingRadius
in classResampleFilter
- Returns:
- the recommended sampling radius to be used with this filter
-
-