Show all scripts

Extremum Filter

Category: Image Filters
Author:
Description: Filter to compute the Extremum Filtered Image. This computes the maximum, minimum and average images within a 3x3 neighbourhood.Whichever of the minimum or maximum is closest to the mean is substituted for the pixel value. This filter posterises an image, reducing the number of grey levels, filtering out noise and making edges more abrupt.
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