Changing Image Contrast
The right mouse button provides you with a very simple way of changing image contrast. To do so, open an image and then hold down the right mouse button and drag it around the screen. The cursor changes from a red cross to one that is shown in Figure 23. To restore an image to its original appearance, refer to "Restoring images to their original appearance".
Figure 23. Changing image contrast using the right mouse button
When you drag the cursor up and down or across the image, the image may become darker and gradually disappear or become lighter in appearance. At some points you may be able to create a negative of the image.
Contents
Adjust Window and Level
The Adjust Window and Level icon on the Image toolbar provides another way to change the contrast of images.
Figure 24. The Level and Window dialog box
Move each slider up or down to change the contrast of the image. The changes are immediately effective in the image.
To adjust image contrast
1 Open an image file. The image appears in an image window.
2 Click Adjust Window and Level. The Level & Window dialog box appears.
3 In the dialog box, move each slider up or down to change the contrast of the image. The changes are immediately effective in the image. Click Close when done.
Restoring images to their original appearance
To return to the original appearance of the image, click Reset LUT.
In addition, you can click the Gray icon to restore the image to grayscale if you have changed it or added colors.
Improving contrast by generating and modifying histograms
To generate a histogram of an image, you can use the Lookup Table icon or call LUT > Histogram LUT. To obtain a histogram summary, which is in the tabular form, use the Algorithms > Histogram Tools > Histogram Summary command.
To generate a histogram for an image
1 Open an image. The image appears in an image window.
2 Do either of the following: click Lookup Table icon or select LUT > Histogram-LUT. For images that do not contain VOIs, the Lookup Table window opens.
3 For images that contain VOIs, the Histogram dialog box appears. In the dialog box, select either Whole image or VOI region(s).
4 Click OK. A progress message appears. After a few moments, the Lookup Table window (Figure 26) opens.
Figure 25. The Lookup Table window (A) and Histogram dialog box (B)
A | B |
Definition: Lookup table (LUT) indicates the intensity of each voxel in the image and, in MIPAV, allows you to remap the original intensities to other intensities.
transfer function reflects the relationship between the original image intensity values and how they are mapped into the LUT. The line in the LUT represents the transfer function.
To change back to the original grayscale intensities, click Gray LUT in the MIPAV window.
Lookup Table dialog box
Applying color to images using predefined LUTs
MIPAV provides a variety of pseudo-color LUTs. When a pseudo-color LUT is applied to an image, the grayscale intensities are remapped to the pseudo-color intensity values.
Using interpolation to smooth images
If you are zooming in on a portion of an image and want to reduce the appearance of pixilations in the image, make sure to select the Interpolate image check box. Interpolation smooths the pixilation. |
To apply a pseudo-color LUT
1 Open an image.
2 Select the image window.
3 Click Displays Lookup Table icon to call the Lookup Table dialog box.
4 In the dialog box that appears, select one of the LUTs on the LUT toolbar.
5 Check the Update (real-time) box.
6 MIPAV immediately applies the LUT to the image.
To change back to the original grayscale intensities, click Gray LUT in the MIPAV window.
Creating negatives of images
To create a negative image
1 Select the image window of the image you want to invert.
2 Click Invert LUT.
Based on the 256-step color values scale, MIPAV assigns the inverse value to each pixel of the image (refer to Figure 27).
Tips: You may wish to apply a LUT to the image or adjust the histogram of the image first before applying creating the negative.The Invert LUT icon is a toggle. To change the image back to its previous appearance, simply select Invert LUT again. To change the image back to its original appearance, select Reset LUT.
Note: Invert LUT appears on two different windows: in the Image toolbar in the MIPAV window (select Toolbars > Image toolbar to display the toolbar) and in the LUT toolbar in the Lookup Table window.
Comparing images using alphablending
Alphablending is a technique that adds transparency information to translucent objects. When two images share the same window such as when you are loading the image, you can adjust the alphablending settings so that you can see a blend of both images and can compare overlapping regions in two datasets. See also "Loading image files".
To use the alphablending function
1 Open the first image, then load the second image in the same window.
2 Adjust the alphablending slider at the bottom of the MIPAV window.
3 Move the slider to select the best ratio for the datasets of interest.
The level of translucency for one image is inversely proportional to the other. Thus, if image A is 75 percent transparent (25 percent opaque), then image B is 75 percent opaque (25 percent transparent).