com.pearsoneduc.ip.op
Class GreyOpenOp

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

public class GreyOpenOp
extends StandardGreyOp

Performs the morphological operation of opening on a greyscale image.

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

Constructor Summary
GreyOpenOp(GreyStructElement element)
          Creates a GreyOpenOp that uses the specified structuring element.
GreyOpenOp(GreyStructElement element, boolean rescale)
          Creates a GreyOpenOp that uses the specified structuring element.
 
Method Summary
 java.awt.image.BufferedImage filter(java.awt.image.BufferedImage src, java.awt.image.BufferedImage dest)
          Performs morphological opening 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

GreyOpenOp

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

GreyOpenOp

public GreyOpenOp(GreyStructElement element,
                  boolean rescale)
Creates a GreyOpenOp that uses the specified structuring element. Output values will be truncated or rescaled, according to the value of the boolean parameter.
Parameters:
element - structuring element
rescale - flag to indicated whether values will be rescaled
Method Detail

filter

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