Class EdgeDetectionUsingDilation


  • public class EdgeDetectionUsingDilation
    extends java.lang.Object
    Implements edge detection using dilation

    - First grayscale image

    - Then dilate gray scaled image ( iterate for 1 time )

    - And at last subtract gray scaled image from dilated one

    - And you've edge highlighted image

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.image.BufferedImage detect​(java.awt.image.BufferedImage img, int order)
      First applies dilation and then subtracts source image from dilated image, resulting into edge highlighted image
      java.awt.image.BufferedImage detect​(java.lang.String img, int order)
      First applies dilation and then subtracts source image from dilated image, resulting into edge highlighted image
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EdgeDetectionUsingDilation

        public EdgeDetectionUsingDilation()
    • Method Detail

      • detect

        public java.awt.image.BufferedImage detect​(java.awt.image.BufferedImage img,
                                                   int order)
        First applies dilation and then subtracts source image from dilated image, resulting into edge highlighted image
        Parameters:
        img - Image to be edge detected
        order - Size of structuring element to be used in Dilation
        Returns:
        Edge highlighted image
      • detect

        public java.awt.image.BufferedImage detect​(java.lang.String img,
                                                   int order)
        First applies dilation and then subtracts source image from dilated image, resulting into edge highlighted image
        Parameters:
        img - Image to be edge detected
        order - Size of structuring element to be used in Dilation
        Returns:
        Edge detected image