Class SobelEdgeDetector


  • public class SobelEdgeDetector
    extends GaussianEdgeDetector
    This class detects the edges of grayscale images using Sobel convolution kernel.
    Note: The final matrix of edges is slightly smaller than the original image. The difference depends on the size of the kernel matrix.
    Author:
    Jason Altschuler, modified by Azim Ahmadzadeh and Dustin Kempton of Data Mining Lab, Georgia State University
    See Also:
    ImageConvolution
    • Constructor Detail

      • SobelEdgeDetector

        public SobelEdgeDetector​(String filePath)
        All work is done in constructor.
        Parameters:
        filePath - path to image
      • SobelEdgeDetector

        public SobelEdgeDetector​(double[][] image)
        All work is done in constructor.

        Uses L2 norm by default.

        Parameters:
        image -
      • SobelEdgeDetector

        public SobelEdgeDetector​(double[][] image,
                                 boolean L1norm)
        All work is done in constructor.

        Gives option to use L1 or L2 norm.