Intensity Windowing

One of the simplest ways to enhance an image is to focus only on the intensity range of the image which contains the features of interest. This can be accomplished by windowing the image - setting all pixels below one value to the window minimum, and setting all pixels above another value to the window maximum. When the image is displayed, the new intensity range will be stretched to the monitor display range, thereby enhancing detail in the specified intensity window. The greymap -w program performs intensity windowing based on user specified intensity range. When -s option is used, the program linearly scales pixel values to the specified range. (see code)

Command Usage

greymap [options] infile outfile
        [-d]      Print debugging information
        [-s # #]  Scale pixels to specified range
        [-w # #]  Window pixels to specified range
        [-h]      Perform histogram equalization
        [-t]      Trim top and bottom 1 percent of range

Example

greymap -w 30 200 input.im window.im
disp input.im window.im