Image Smoothing - Opening

opening

Introduction

Image smoothing can be performed by application of morphological operations in ordered fashion.

Image gets smoothed by removing bright pixels.

Size of structuring element i.e. order of kernel to be used Erosion & Dilation, can be specified, which will control extent of smoothing.

Usage

import in.itzmeanjan.filterit.ImportExportImage;
import in.itzmeanjan.filterit.smoothing.Opening;

public class Main{

	public static void main(String [] args){
		System.out.println(
            ImportExportImage.exportImage(
                new Opening().smooth("eye.jpg", 5, 5), 
                "opened.jpg"));
	}

}

Result

Original Smoothed
eye opened

Thanking you :)