public class CatmullRomFilter extends Object implements ResizeFilterFunction
Modifier and Type | Field and Description |
---|---|
static ResizeFilterFunction |
INSTANCE
The singleton instance of the filter
|
Constructor and Description |
---|
CatmullRomFilter() |
Modifier and Type | Method and Description |
---|---|
double |
filter(double t)
The filter function.
|
double |
getSupport()
Returns the support width for the filter function.
|
public static ResizeFilterFunction INSTANCE
public CatmullRomFilter()
public final double filter(double t)
ResizeFilterFunction
filter
in interface ResizeFilterFunction
t
- The weight to filterpublic final double getSupport()
ResizeFilterFunction
getSupport
in interface ResizeFilterFunction