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 BinaryFunction
protected Colormap
protected int
protected int
Fields 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.int
Get the number of iterations the effect is performed.int
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, 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
-