spiral.digitalize.filters
Class DilateFilter
java.lang.Object
|
+--java.awt.image.ImageFilter
|
+--spiral.digitalize.filters.WholeImageFilter
|
+--spiral.digitalize.filters.BinaryFilter
|
+--spiral.digitalize.filters.DilateFilter
- All Implemented Interfaces:
- java.lang.Cloneable, java.awt.image.ImageConsumer, java.io.Serializable
- public class DilateFilter
- extends BinaryFilter
This class is part of package downloaded from JH Labs - filters
Title: JH Labs - filters
Description: Given a binary image, this filter performs binary dilation, setting all added pixels to the given 'new' color.
Copyright: Copyright (C) Jerry Huxtable 1998
Company:
- See Also:
- Serialized Form
Fields inherited from class java.awt.image.ImageFilter |
consumer |
Fields inherited from interface java.awt.image.ImageConsumer |
COMPLETESCANLINES, IMAGEABORTED, IMAGEERROR, RANDOMPIXELORDER, SINGLEFRAME, SINGLEFRAMEDONE, SINGLEPASS, STATICIMAGEDONE, TOPDOWNLEFTRIGHT |
Method Summary |
int |
getThreshold()
Return the threshold - the number of neighbouring pixels for dilation to occur. |
void |
imageComplete(int status)
|
void |
setThreshold(int threshold)
Set the threshold - the number of neighbouring pixels for dilation to occur. |
java.lang.String |
toString()
|
Methods inherited from class java.awt.image.ImageFilter |
clone, getFilterInstance, resendTopDownLeftRight, setHints, setProperties |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
threshold
public int threshold
DilateFilter
public DilateFilter()
setThreshold
public void setThreshold(int threshold)
- Set the threshold - the number of neighbouring pixels for dilation to occur.
- Parameters:
threshold
- the new threshold
getThreshold
public int getThreshold()
- Return the threshold - the number of neighbouring pixels for dilation to occur.
- Returns:
- the current threshold
imageComplete
public void imageComplete(int status)
- Specified by:
imageComplete
in interface java.awt.image.ImageConsumer
- Overrides:
imageComplete
in class java.awt.image.ImageFilter
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object