com.jhlabs.image
Class BinaryFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.WholeImageFilter
com.jhlabs.image.BinaryFilter
- All Implemented Interfaces:
- java.awt.image.BufferedImageOp, java.lang.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.
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
newColor
protected int newColor
blackFunction
protected BinaryFunction blackFunction
iterations
protected int iterations
colormap
protected Colormap colormap
BinaryFilter
public BinaryFilter()
setIterations
public void setIterations(int iterations)
- Set the number of iterations the effect is performed.
- Parameters:
iterations
- the number of iterations- See Also:
getIterations()
getIterations
public int getIterations()
- Get the number of iterations the effect is performed.
- Returns:
- the number of iterations
- See Also:
setIterations(int)
setColormap
public void setColormap(Colormap colormap)
- Set the colormap to be used for the filter.
- Parameters:
colormap
- the colormap- See Also:
getColormap()
getColormap
public Colormap getColormap()
- Get the colormap to be used for the filter.
- Returns:
- the colormap
- See Also:
setColormap(com.jhlabs.image.Colormap)
setNewColor
public void setNewColor(int newColor)
getNewColor
public int getNewColor()
setBlackFunction
public void setBlackFunction(BinaryFunction blackFunction)
getBlackFunction
public BinaryFunction getBlackFunction()