no.hiof.imagepr.morphology
Class HitOrMiss

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

public class HitOrMiss
extends java.lang.Object

A HitOrMiss objects performs hit or miss transforms on a BinaryImage.

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

Constructor Summary
HitOrMiss(StructElement structEl)
          Constructor which sets a single structure elements to be used by the hit of miss transform.
HitOrMiss(StructElement[] structElements)
          Constructor which sets an array of structure elements to be used by the hit of miss transform.
 
Method Summary
 BinaryImage thin(BinaryImage image)
          Produces a BinaryImage by thinning with several structure elements.
 BinaryImage transform(BinaryImage image)
          Produces a BinaryImage by hit or miss transform.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HitOrMiss

public HitOrMiss(StructElement[] structElements)
Constructor which sets an array of structure elements to be used by the hit of miss transform.

Parameters:
structElements - An array of structure elements.

HitOrMiss

public HitOrMiss(StructElement structEl)
Constructor which sets a single structure elements to be used by the hit of miss transform.

Parameters:
structEl - The structure element.
Method Detail

transform

public BinaryImage transform(BinaryImage image)
Produces a BinaryImage by hit or miss transform. If there is several structure elements registered, the result is the union of several images produces by hit or miss transform.

Parameters:
image - The source image for the transform.
Returns:
The result of the hit or miss transform.

thin

public BinaryImage thin(BinaryImage image)
Produces a BinaryImage by thinning with several structure elements.

Parameters:
image - The source image for thinning.
Returns:
The result of the thinning.