All processing examples described in the following are done using Matlab 6.1 or later, associated with the image processing toolbox 3.1 or later. Image moon.tif belongs to the image library of the toolbox.