railo.runtime.img.filter
Class ErodeFilter

java.lang.Object
  extended by railo.runtime.img.filter.AbstractBufferedImageOp
      extended by railo.runtime.img.filter.WholeImageFilter
          extended by railo.runtime.img.filter.BinaryFilter
              extended by railo.runtime.img.filter.ErodeFilter
All Implemented Interfaces:
BufferedImageOp, Cloneable, DynFiltering

public class ErodeFilter
extends BinaryFilter
implements DynFiltering

Given a binary image, this filter performs binary erosion, setting all removed pixels to the given 'new' color.


Constructor Summary
ErodeFilter()
           
 
Method Summary
 BufferedImage filter(BufferedImage src, Struct parameters)
           
 int getThreshold()
          Return the threshold - the number of neighbouring pixels for dilation to occur.
 void setThreshold(int threshold)
          Set the threshold - the number of neighbouring pixels for dilation to occur.
 String toString()
           
 
Methods inherited from class railo.runtime.img.filter.BinaryFilter
getBlackFunction, getColormap, getIterations, getNewColor, setBlackFunction, setColormap, setIterations, setNewColor
 
Methods inherited from class railo.runtime.img.filter.WholeImageFilter
filter
 
Methods inherited from class railo.runtime.img.filter.AbstractBufferedImageOp
clone, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints, getRGB, setRGB
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ErodeFilter

public ErodeFilter()
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
See Also:
getThreshold()

getThreshold

public int getThreshold()
Return the threshold - the number of neighbouring pixels for dilation to occur.

Returns:
the current threshold
See Also:
setThreshold(int)

toString

public String toString()
Overrides:
toString in class Object

filter

public BufferedImage filter(BufferedImage src,
                            Struct parameters)
                     throws PageException
Specified by:
filter in interface DynFiltering
Overrides:
filter in class BinaryFilter
Throws:
PageException


Copyright © 2012 Railo