This example shows how the mouse could be used to change how an image is displayed. First it registers two callbacks, one for button down and one for button up. As soon as the button is pressed, an other callback is registered which does the computation of the image. Here it just changes the lower and upper limit of the displayed pixels => certain values go into saturation - but can be used for whatever other application.
Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.