com.pearsoneduc.ip.op
Class GreyErodeOp

java.lang.Object
  |
  +--com.pearsoneduc.ip.op.StandardGreyOp
        |
        +--com.pearsoneduc.ip.op.GreyErodeOp

public class GreyErodeOp
extends StandardGreyOp

Performs the morphological operation of erosion on a greyscale image.

Version:
1.0 [1999/08/31]
Author:
Nick Efford

Constructor Summary
GreyErodeOp(GreyStructElement element)
          Creates a GreyErodeOp that uses the specified structuring element.
GreyErodeOp(GreyStructElement element, boolean rescale)
          Creates a GreyErodeOp with the specified structuring element.
 
Method Summary
 java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dest)
          Performs morphological erosion of a greyscale image.
 
Methods inherited from class com.pearsoneduc.ip.op.StandardGreyOp
checkImage, createCompatibleDestImage, getBounds2D, getPoint2D, getRenderingHints
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GreyErodeOp

public GreyErodeOp(GreyStructElement element)
Creates a GreyErodeOp that uses the specified structuring element. Output values will be truncated, rather than rescaled, to a 0-255 range.
Parameters:
element - structuring element

GreyErodeOp

public GreyErodeOp(GreyStructElement element,
                   boolean rescale)
Creates a GreyErodeOp with the specified structuring element. Output values will be truncated or rescaled, according to the value of the boolean flag.
Parameters:
element - structuring element
rescale - flag to indicate whether rescaling is required
Method Detail

filter

public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src,
                                           java.awt.image.BufferedImage dest)
Performs morphological erosion of a greyscale image.
Parameters:
src - source image
dest - destination image, or null
Returns:
eroded image.
Overrides:
filter in class StandardGreyOp