Show all scripts

Grayscale Opening Filter (3/5)

Category: Image Filters
Author:
Description: Filter to carry out greyscale opening. First the minimum values in 3x3 neighbourhood are calculated and stored in an image. The maximum values in a 5x5 neighbourhood of this image are then computed to give the final image. This is equivalent to a erosion followed by a dilation operation - ie opening
Comments: There is a limitation (or conflict) in User Defined Language with DM script. The operation "/" and "*" cannot be defined as operators in Notepad++ once we define "/*" and "*/" as comment block markers. So I have left "/" and "*" out from the operator list
Acknowledgements: For an excellent overview of image processing methods and applications see 'The Image Processing Handbook' by john Russ
Script version: 2.0
DM/GMS version: 3.6.5
Script written as a function: No
Source: Show code
Download Source Code: Download
Download Zip File: Download