devs.visionpackage.org.cmotch.visionlibrary
Class EdgeDetection

java.lang.Object
  extended by devs.visionpackage.org.cmotch.visionlibrary.EdgeDetection

public class EdgeDetection
extends java.lang.Object

Edge detection class


Field Summary
static int FREICHEN_HORIZ
           
static int FREICHEN_VERT
           
static int PREWITT_HORIZ
           
static int PREWITT_VERT
           
static int ROBERTS_HORIZ
           
static int ROBERTS_VERT
           
static int SOBEL_HORIZ
           
static int SOBEL_VERT
           
 
Constructor Summary
EdgeDetection()
           
 
Method Summary
static java.awt.image.BufferedImage drawPoints(java.awt.image.BufferedImage img, java.awt.image.BufferedImage origImg)
          Draw points on an image.
static java.awt.image.BufferedImage edgeDetection(java.awt.image.BufferedImage img, int EdgeType)
          Perform edge detection on the input image
 java.awt.image.BufferedImage sobalDetectionJAI(java.awt.image.BufferedImage image0)
          Perform the sobal detection on the input image using the JAI (Very Slow)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SOBEL_HORIZ

public static final int SOBEL_HORIZ
See Also:
Constant Field Values

SOBEL_VERT

public static final int SOBEL_VERT
See Also:
Constant Field Values

ROBERTS_HORIZ

public static final int ROBERTS_HORIZ
See Also:
Constant Field Values

ROBERTS_VERT

public static final int ROBERTS_VERT
See Also:
Constant Field Values

PREWITT_HORIZ

public static final int PREWITT_HORIZ
See Also:
Constant Field Values

PREWITT_VERT

public static final int PREWITT_VERT
See Also:
Constant Field Values

FREICHEN_HORIZ

public static final int FREICHEN_HORIZ
See Also:
Constant Field Values

FREICHEN_VERT

public static final int FREICHEN_VERT
See Also:
Constant Field Values
Constructor Detail

EdgeDetection

public EdgeDetection()
Method Detail

sobalDetectionJAI

public java.awt.image.BufferedImage sobalDetectionJAI(java.awt.image.BufferedImage image0)
Perform the sobal detection on the input image using the JAI (Very Slow)

Parameters:
image0 - BufferedImage
Returns:
BufferedImage

edgeDetection

public static java.awt.image.BufferedImage edgeDetection(java.awt.image.BufferedImage img,
                                                         int EdgeType)
Perform edge detection on the input image

Parameters:
img - BufferedImage
EdgeType - int Edge Detection Type
Returns:
BufferedImage

drawPoints

public static java.awt.image.BufferedImage drawPoints(java.awt.image.BufferedImage img,
                                                      java.awt.image.BufferedImage origImg)
Draw points on an image. Taking an image that is the result of edge detection on the original image, and then drawing those points on it.

Parameters:
img - BufferedImage
origImg - BufferedImage
Returns:
BufferedImage