Class Opening


  • public class Opening
    extends java.lang.Object
    It's one of smoothing operations based on image morphological op.

    - First erode image

    - Then dilate it

    Size of structuring element being used for each of above ops, affects result of smoothing

    • Constructor Summary

      Constructors 
      Constructor Description
      Opening()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.image.BufferedImage smooth​(java.awt.image.BufferedImage img, int orderErosion, int orderDilation)
      Smooths image using ordered combination of morphological ops i.e.
      java.awt.image.BufferedImage smooth​(java.lang.String img, int orderErosion, int orderDilation)
      Smooths image using ordered combination of morphological ops i.e.
      • Methods inherited from class java.lang.Object

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

      • Opening

        public Opening()
    • Method Detail

      • smooth

        public java.awt.image.BufferedImage smooth​(java.awt.image.BufferedImage img,
                                                   int orderErosion,
                                                   int orderDilation)
        Smooths image using ordered combination of morphological ops i.e. Erosion & Dilation ( order is very important here )
        Parameters:
        img - Image to be smoothed
        orderErosion - Size of structuring element used for Erosion
        orderDilation - Size of structuring element used for Dilation
        Returns:
        Smoothed image
      • smooth

        public java.awt.image.BufferedImage smooth​(java.lang.String img,
                                                   int orderErosion,
                                                   int orderDilation)
        Smooths image using ordered combination of morphological ops i.e. Erosion & Dilation ( order is very important here )
        Parameters:
        img - Image to be smoothed
        orderErosion - Size of structuring element used for Erosion
        orderDilation - Size of structuring element used for Dilation
        Returns:
        Smoothed image