no.hiof.imagepr.morphology
Class Morphology

java.lang.Object
  extended byno.hiof.imagepr.morphology.Morphology

public class Morphology
extends java.lang.Object

A Morphology object can perform dilation and erotion of a BinaryImage. These are the basic morphological operations. The structure element are modelled by an instance of StructElement, or by an instance of a subclass of StructElement.

Author:
Per-Olav Rusås
See Also:
StructElement

Field Summary
protected  StructElement structEl
           
 
Constructor Summary
Morphology(StructElement structEl)
          A constructor which sets the structure element to be used during dilation and erotion.
 
Method Summary
 BinaryImage dilate(BinaryImage image)
          Produces a Binary Image by dilating a source image.
 BinaryImage erode(BinaryImage image)
          Produces a Binary Image by eroding a source image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

structEl

protected StructElement structEl
Constructor Detail

Morphology

public Morphology(StructElement structEl)
A constructor which sets the structure element to be used during dilation and erotion.

Parameters:
structEl - The structure element.
Method Detail

dilate

public BinaryImage dilate(BinaryImage image)
Produces a Binary Image by dilating a source image. The source image is not altered.

Parameters:
image - Source image for dilation.
Returns:
The dilated image.

erode

public BinaryImage erode(BinaryImage image)
Produces a Binary Image by eroding a source image. The source image is not altered.

Parameters:
image - Source image for erotion.
Returns:
The dilated image.