Package org.apache.pdfbox.jbig2.image
Class Filter
- java.lang.Object
-
- org.apache.pdfbox.jbig2.image.Filter
-
- Direct Known Subclasses:
Filter.Bessel,Filter.Blackman,Filter.Box,Filter.Catrom,Filter.Cubic,Filter.Gaussian,Filter.Hamming,Filter.Hanning,Filter.Hermite,Filter.Lanczos,Filter.Mitchell,Filter.Quadratic,Filter.Sinc,Filter.Triangle
abstract class Filter extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFilter.Besselstatic classFilter.Blackmanstatic classFilter.Boxstatic classFilter.Catromstatic classFilter.Cubicstatic classFilter.Gaussianstatic classFilter.Hammingstatic classFilter.Hanningstatic classFilter.Hermitestatic classFilter.Lanczosstatic classFilter.Mitchellstatic classFilter.Pointstatic classFilter.Quadraticstatic classFilter.Sincstatic classFilter.Triangle
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static FilterbyType(FilterType type)Find a filter by its type.abstract doublef(double x)doublefWindowed(double x)doublegetBlur()java.lang.StringgetName()Return the filter name.doublegetSupport()static java.lang.StringnameByType(FilterType type)Find a filter name by its type.voidsetBlur(double blur)voidsetSupport(double support)static FilterTypetypeByName(java.lang.String name)Find a filter type by its name.
-
-
-
Method Detail
-
nameByType
public static java.lang.String nameByType(FilterType type)
Find a filter name by its type.- Parameters:
type- the filter type- Returns:
- filter name
-
typeByName
public static FilterType typeByName(java.lang.String name)
Find a filter type by its name.- Parameters:
name- the filter name- Returns:
- filter type
-
byType
public static Filter byType(FilterType type)
Find a filter by its type.- Parameters:
type- the filter type- Returns:
- the Filter
-
fWindowed
public double fWindowed(double x)
-
f
public abstract double f(double x)
-
getName
public java.lang.String getName()
Return the filter name.- Returns:
- the filter's name
-
getSupport
public double getSupport()
- Returns:
- the support
-
setSupport
public void setSupport(double support)
- Parameters:
support- the support to set
-
getBlur
public double getBlur()
- Returns:
- the blur
-
setBlur
public void setBlur(double blur)
- Parameters:
blur- the blur to set
-
-