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 Object
  • Field Details

    • cardinal

      final boolean cardinal
      is this filter cardinal? ie, does func(x) = (x==0) for integer x?
    • support

      double support
      radius of nonzero portion
    • blur

      double blur
      blur factor (1=normal)
  • Constructor Details

    • Filter

      protected Filter()
    • Filter

      protected Filter(boolean cardinal, double support, double blur)
  • Method Details

    • nameByType

      public static String nameByType(FilterType type)
      Find a filter name by its type.
      Parameters:
      type - the filter type
      Returns:
      filter name
    • typeByName

      public static FilterType typeByName(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 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