org.jscience.computing.ai.vision
Class HoughTransformOp

java.lang.Object
  extended by org.jscience.computing.ai.vision.HoughTransformOp
Direct Known Subclasses:
LineHoughTransformOp

public abstract class HoughTransformOp
extends java.lang.Object

This abstract class is for subclasses to implement different derivates of Hough Transforms. Note that as this is more of an operation, not a filter, this class does not implement the Filter interface.


Constructor Summary
HoughTransformOp()
          Creates a new instance of HoughTransform
 
Method Summary
abstract  java.awt.image.BufferedImage getAccumulatorImage()
          Return a BufferedImage of the accumulator.
abstract  java.awt.image.BufferedImage getSuperimposed(java.awt.image.BufferedImage img, double threshold)
          Return an image of the Hough Transform results superimposed on the input image.
abstract  void run(java.awt.image.BufferedImage img)
          Run the Hough transform on the input image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HoughTransformOp

public HoughTransformOp()
Creates a new instance of HoughTransform

Method Detail

run

public abstract void run(java.awt.image.BufferedImage img)
Run the Hough transform on the input image.

Parameters:
img - the input image.

getAccumulatorImage

public abstract java.awt.image.BufferedImage getAccumulatorImage()
Return a BufferedImage of the accumulator. How this is implemented is up to the programmer, since accumulators can be multidimensional.

Returns:
the accumulator image.

getSuperimposed

public abstract java.awt.image.BufferedImage getSuperimposed(java.awt.image.BufferedImage img,
                                                             double threshold)
Return an image of the Hough Transform results superimposed on the input image.

Parameters:
img - the input image.
threshold - the accumulator threshold.
Returns:
the superimposed image.