Class BinaryFilter

All Implemented Interfaces:
BufferedImageOp, Cloneable
Direct Known Subclasses:
DilateFilter, ErodeFilter, LifeFilter, OutlineFilter, SkeletonFilter

public abstract class BinaryFilter extends WholeImageFilter
The superclass for some of the filters which work on binary images.
  • Field Details

    • newColor

      protected int newColor
    • blackFunction

      protected BinaryFunction blackFunction
    • iterations

      protected int iterations
    • colormap

      protected Colormap colormap
  • Constructor Details

    • BinaryFilter

      public BinaryFilter()
  • Method Details

    • setIterations

      public void setIterations(int iterations)
      Set the number of iterations the effect is performed.
      Parameters:
      iterations - the number of iterations
      See Also:
    • getIterations

      public int getIterations()
      Get the number of iterations the effect is performed.
      Returns:
      the number of iterations
      See Also:
    • setColormap

      public void setColormap(Colormap colormap)
      Set the colormap to be used for the filter.
      Parameters:
      colormap - the colormap
      See Also:
    • getColormap

      public Colormap getColormap()
      Get the colormap to be used for the filter.
      Returns:
      the colormap
      See Also:
    • setNewColor

      public void setNewColor(int newColor)
    • getNewColor

      public int getNewColor()
    • setBlackFunction

      public void setBlackFunction(BinaryFunction blackFunction)
    • getBlackFunction

      public BinaryFunction getBlackFunction()