j2d.edge
Class CannyProcessor

java.lang.Object
  extended by j2d.edge.CannyProcessor
All Implemented Interfaces:
ImageProcessorFactory, ImageProcessorInterface

public class CannyProcessor
extends java.lang.Object
implements ImageProcessorInterface, ImageProcessorFactory


Constructor Summary
CannyProcessor(int thresh1, int thresh2, int thresh, int kw, float sigma)
           
 
Method Summary
 ImageProcessorInterface getProcessor(int i)
          get a parameterized image processor.
 java.awt.Image process(java.awt.Image _sourceImage)
          a basic garbage in, garbage out processor.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CannyProcessor

public CannyProcessor(int thresh1,
                      int thresh2,
                      int thresh,
                      int kw,
                      float sigma)
Method Detail

getProcessor

public ImageProcessorInterface getProcessor(int i)
Description copied from interface: ImageProcessorFactory
get a parameterized image processor.

Specified by:
getProcessor in interface ImageProcessorFactory
Parameters:
i - some integer parameter used to create the image processor
Returns:
an ImageProcessor instance.

process

public java.awt.Image process(java.awt.Image _sourceImage)
Description copied from interface: ImageProcessorInterface
a basic garbage in, garbage out processor.

Specified by:
process in interface ImageProcessorInterface
Parameters:
_sourceImage - input image
Returns:
output image