com.jhlabs.image

Class BinaryFilter

Implemented Interfaces:
BufferedImageOp, Cloneable
Known Direct 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 Summary

protected BinaryFunction
blackFunction
protected Colormap
colormap
protected int
iterations
protected int
newColor

Fields inherited from class com.jhlabs.image.WholeImageFilter

originalSpace, transformedSpace

Method Summary

BinaryFunction
getBlackFunction()
Colormap
getColormap()
Get the colormap to be used for the filter.
int
getIterations()
Get the number of iterations the effect is performed.
int
getNewColor()
void
setBlackFunction(BinaryFunction blackFunction)
void
setColormap(Colormap colormap)
Set the colormap to be used for the filter.
void
setIterations(int iterations)
Set the number of iterations the effect is performed.
void
setNewColor(int newColor)

Methods inherited from class com.jhlabs.image.WholeImageFilter

filter, filterPixels, transformSpace

Methods inherited from class com.jhlabs.image.AbstractBufferedImageOp

clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRGB, getRenderingHints, setRGB

Field Details

blackFunction

protected BinaryFunction blackFunction

colormap

protected Colormap colormap

iterations

protected int iterations

newColor

protected int newColor

Method Details

getBlackFunction

public BinaryFunction getBlackFunction()

getColormap

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

getIterations

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

getNewColor

public int getNewColor()

setBlackFunction

public void setBlackFunction(BinaryFunction blackFunction)

setColormap

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

setIterations

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

setNewColor

public void setNewColor(int newColor)