Package com.jhlabs.image
Class BinaryFilter
java.lang.Object
com.jhlabs.image.AbstractBufferedImageOp
com.jhlabs.image.WholeImageFilter
com.jhlabs.image.BinaryFilter
- All Implemented Interfaces:
BufferedImageOp,Cloneable
- Direct Known Subclasses:
DilateFilter,ErodeFilter,LifeFilter,OutlineFilter,SkeletonFilter
The superclass for some of the filters which work on binary images.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BinaryFunctionprotected Colormapprotected intprotected intFields inherited from class com.jhlabs.image.WholeImageFilter
originalSpace, transformedSpace -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the colormap to be used for the filter.intGet the number of iterations the effect is performed.intvoidsetBlackFunction(BinaryFunction blackFunction) voidsetColormap(Colormap colormap) Set the colormap to be used for the filter.voidsetIterations(int iterations) Set the number of iterations the effect is performed.voidsetNewColor(int newColor) Methods inherited from class com.jhlabs.image.WholeImageFilter
filter, filterPixels, transformSpaceMethods inherited from class com.jhlabs.image.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
-
Field Details
-
newColor
protected int newColor -
blackFunction
-
iterations
protected int iterations -
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
Set the colormap to be used for the filter.- Parameters:
colormap- the colormap- See Also:
-
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
-
getBlackFunction
-