no.hiof.imagepr.morphology
Class Morphology
java.lang.Object
no.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
Constructor Summary |
Morphology(StructElement structEl)
A constructor which sets the structure element to be used during
dilation and erotion. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
structEl
protected StructElement structEl
Morphology
public Morphology(StructElement structEl)
- A constructor which sets the structure element to be used during
dilation and erotion.
- Parameters:
structEl
- The structure element.
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.