Class EdgeDetectionUsingDilation
- java.lang.Object
-
- in.itzmeanjan.filterit.edgedetection.EdgeDetectionUsingDilation
-
public class EdgeDetectionUsingDilation extends java.lang.ObjectImplements 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
-
-
Constructor Summary
Constructors Constructor Description EdgeDetectionUsingDilation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.image.BufferedImagedetect(java.awt.image.BufferedImage img, int order)First applies dilation and then subtracts source image from dilated image, resulting into edge highlighted imagejava.awt.image.BufferedImagedetect(java.lang.String img, int order)First applies dilation and then subtracts source image from dilated image, resulting into edge highlighted image
-
-
-
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 detectedorder- 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 detectedorder- Size of structuring element to be used in Dilation- Returns:
- Edge detected image
-
-