This script performs the KUWAHARA filtering of an image as described f.e. at the following homepages:
The filter is scripted as a funcition, but a main script has been added for testing purposes. Besides the output of the filtered image, it is possible to ouput various processed images from the algorithm. To test the program, just launch it with an open image.