com.pearsoneduc.ip.op
Class GreyCloseOp

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

public class GreyCloseOp
extends StandardGreyOp

Performs the morphological operation of closing on a greyscale image.

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

Constructor Summary
GreyCloseOp(GreyStructElement element)
          Creates a GreyCloseOp that uses the specified structuring element.
GreyCloseOp(GreyStructElement element, boolean rescale)
          Creates a GreyCloseOp 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 closing 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

GreyCloseOp

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

GreyCloseOp

public GreyCloseOp(GreyStructElement element,
                   boolean rescale)
Creates a GreyCloseOp 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 to be used
rescale - flag to indicate 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 closing of a greyscale image.
Parameters:
src - source image
dest - destination image, or null
Returns:
closed image.
Overrides:
filter in class StandardGreyOp