Grayscale Opening Filter (3/3)

Category: Image Filters
Author:
Description: Filter to carry out greyscale closing. First the maximum values in a 3x3 neighbourhood are calculated and stored in an image. The minimum values in a 3x3 neighbourhood are then computed to give the final image. This is equivalent to a dilation followed by an erosion operation - ie closing
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