Class RobertsCrossEdgeDetector
- java.lang.Object
-
- edu.gsu.cs.dmlab.imageproc.edgedetection.detectors.GaussianEdgeDetector
-
- edu.gsu.cs.dmlab.imageproc.edgedetection.detectors.RobertsCrossEdgeDetector
-
public class RobertsCrossEdgeDetector extends GaussianEdgeDetector
This class provides a configurable implementation of the Canny edge detection algorithm. This classic algorithm has a number of shortcomings, but remains an effective tool in many scenarios.- Author:
- Jason Altschuler, modified by Azim Ahmadzadeh and Dustin Kempton of Data Mining Lab, Georgia State University
-
-
Field Summary
-
Fields inherited from class edu.gsu.cs.dmlab.imageproc.edgedetection.detectors.GaussianEdgeDetector
edges, L1norm, threshold
-
-
Constructor Summary
Constructors Constructor Description RobertsCrossEdgeDetector(double[][] image)
All work is done in the constructor.RobertsCrossEdgeDetector(double[][] image, boolean L1norm)
All work is done in the constructor.RobertsCrossEdgeDetector(String filePath)
All work is done in the constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[][]
getXkernel()
Abstract methods to implementdouble[][]
getYkernel()
-
Methods inherited from class edu.gsu.cs.dmlab.imageproc.edgedetection.detectors.GaussianEdgeDetector
findEdges, getEdges, getL1norm, getThreshold
-
-
-
-
Constructor Detail
-
RobertsCrossEdgeDetector
public RobertsCrossEdgeDetector(String filePath)
All work is done in the constructor.- Parameters:
filePath
- path to image
-
RobertsCrossEdgeDetector
public RobertsCrossEdgeDetector(double[][] image)
All work is done in the constructor.Uses L2 norm by default.
- Parameters:
image
-
-
RobertsCrossEdgeDetector
public RobertsCrossEdgeDetector(double[][] image, boolean L1norm)
All work is done in the constructor.Gives option to use L1 or L2 norm.
-
-
Method Detail
-
getXkernel
public double[][] getXkernel()
Description copied from class:GaussianEdgeDetector
Abstract methods to implement- Specified by:
getXkernel
in classGaussianEdgeDetector
-
getYkernel
public double[][] getYkernel()
- Specified by:
getYkernel
in classGaussianEdgeDetector
-
-