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

Field Summary
 int threshold
           
 
Fields inherited from class spiral.digitalize.filters.BinaryFilter
blackFunction, colormap, iterations, newColor
 
Fields inherited from class spiral.digitalize.filters.WholeImageFilter
canFilterIndexColorModel, defaultRGBModel, inBytePixels, inPixels, originalSpace, transformedSpace
 
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
 
Constructor Summary
DilateFilter()
           
 
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 spiral.digitalize.filters.BinaryFilter
getBlackFunction, getColormap, getIterations, getNewColor, setBlackFunction, setColormap, setIterations, setNewColor
 
Methods inherited from class spiral.digitalize.filters.WholeImageFilter
setColorModel, setDimensions, setPixels, setPixels, transformSpace
 
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
 

Field Detail

threshold

public int threshold
Constructor Detail

DilateFilter

public DilateFilter()
Method Detail

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