devs.visionpackage.org.cmotch.visionlibrary
Class EdgeDetection
java.lang.Object
devs.visionpackage.org.cmotch.visionlibrary.EdgeDetection
public class EdgeDetection
- extends java.lang.Object
Edge detection class
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 |
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
EdgeDetection
public EdgeDetection()
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
- BufferedImageEdgeType
- 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
- BufferedImageorigImg
- BufferedImage
- Returns:
- BufferedImage