j2d.edge
Class SobelProcessor

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

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


Constructor Summary
SobelProcessor(int a, boolean isX)
           
 
Method Summary
 ImageProcessorInterface getProcessor(int a)
          get a parameterized image processor.
 java.awt.Image process(java.awt.Image img)
          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

SobelProcessor

public SobelProcessor(int a,
                      boolean isX)
Method Detail

getProcessor

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

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

process

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

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