Package in.itzmeanjan.filterit.smoothing
Class Opening
- java.lang.Object
-
- in.itzmeanjan.filterit.smoothing.Opening
-
public class Opening extends java.lang.ObjectIt'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.BufferedImagesmooth(java.awt.image.BufferedImage img, int orderErosion, int orderDilation)Smooths image using ordered combination of morphological ops i.e.java.awt.image.BufferedImagesmooth(java.lang.String img, int orderErosion, int orderDilation)Smooths image using ordered combination of morphological ops i.e.
-
-
-
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 smoothedorderErosion- Size of structuring element used for ErosionorderDilation- 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 smoothedorderErosion- Size of structuring element used for ErosionorderDilation- Size of structuring element used for Dilation- Returns:
- Smoothed image
-
-