org.jscience.computing.ai.vision
Class SobelEdgeDetectorFilter

java.lang.Object
  extended by org.jscience.computing.ai.vision.Filter
      extended by org.jscience.computing.ai.vision.SobelEdgeDetectorFilter

public class SobelEdgeDetectorFilter
extends Filter

This filter performs a simple edge detection algorithm (Sobel).


Constructor Summary
SobelEdgeDetectorFilter()
          Creates a new instance of SobelEdgeDetector
 
Method Summary
 java.awt.image.BufferedImage filter(java.awt.image.BufferedImage image, java.awt.image.BufferedImage output)
          Run the edge detection algorithm on the image passed.
 java.lang.String toString()
          DOCUMENT ME!
 
Methods inherited from class org.jscience.computing.ai.vision.Filter
filter, verifyOutput, verifyOutput, verifyOutput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SobelEdgeDetectorFilter

public SobelEdgeDetectorFilter()
Creates a new instance of SobelEdgeDetector

Method Detail

filter

public java.awt.image.BufferedImage filter(java.awt.image.BufferedImage image,
                                           java.awt.image.BufferedImage output)
Run the edge detection algorithm on the image passed. This filter will work on greyscale or RGB images.

Specified by:
filter in class Filter
Parameters:
image - the input image
output - the output image (optional).
Returns:
the image with the edges detected
See Also:
Filter.verifyOutput(BufferedImage,BufferedImage)

toString

public java.lang.String toString()
DOCUMENT ME!

Overrides:
toString in class java.lang.Object
Returns:
DOCUMENT ME!