Package net.sourceforge.jiu.geometry
Class TriangleFilter
- java.lang.Object
-
- net.sourceforge.jiu.geometry.ResampleFilter
-
- net.sourceforge.jiu.geometry.TriangleFilter
-
public class TriangleFilter extends ResampleFilter
A triangle filter (also known as linear or bilinear filter).- Since:
- 0.10.0
- Author:
- Marco Schmidt
-
-
Constructor Summary
Constructors Constructor Description TriangleFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatapply(float value)Returns the weight of the sample at the distance given by the argument value.StringgetName()Return the name of this filter.floatgetRecommendedSamplingRadius()Returns a recommendation for the sampling radius to be used with this filter.-
Methods inherited from class net.sourceforge.jiu.geometry.ResampleFilter
getSamplingRadius, setSamplingRadius
-
-
-
-
Method Detail
-
apply
public float apply(float value)
Description copied from class:ResampleFilterReturns the weight of the sample at the distance given by the argument value.- Specified by:
applyin classResampleFilter
-
getName
public String getName()
Description copied from class:ResampleFilterReturn the name of this filter. Should avoid natural language words if possible.- Specified by:
getNamein classResampleFilter- Returns:
- String with filter name
-
getRecommendedSamplingRadius
public float getRecommendedSamplingRadius()
Description copied from class:ResampleFilterReturns 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:
getRecommendedSamplingRadiusin classResampleFilter- Returns:
- the recommended sampling radius to be used with this filter
-
-