Transfer Functions


A Transfer Function is the mathematical relationship between the image values and the luminance representation you see on the computer screen. There are two reasons why a transfer function is required for displaying image data:

  1. Most scientifically useful images have a dynamic range that exceeds what can be displayed on a computer screen.

  2. There needs to be a way to select a region of interest in the luminance space so that certain features of the image may be enhanced at the expense of others.

How it Works

Applying a transfer function slices the image luminance data into some number of bins in intensity space. To each of these bins is applied a shade of gray or color to produce a visual representation. Note that the transfer function is computed independently for each image.

To summarize the process:

  1. The transfer function slices the image brightness into some number of "cells" or bins that can be managed by the display device. Each bin spans a brightness range. For example, the lowest bin may hold luminance values in the range of 100 to 105.4 and the next bin may hold values from 105.4 to 110. Summed together, end to end, all image values within some larger range are assigned to some bin.

  2. The palette then assigns a color to each bin. Each bin corresponds to an index into the palette's list of colors. This is also called a Colormap.

  3. Visual enhancement can be achieved by changing the way the brightness is assigned to specific bins or by changing the color assigned to each bin.

In separating the transfer function from the palette, Mira breaks ranks with many image processing software applications that simply allow transfer function adjustments or palette adjustments, but not both. Decoupling these image display concepts gives you greater power and flexibility in performing image enhancement because these two types of enhancement may be applied and adjusted independently.

Transfer Function Profiles

A Transfer Function Profile is a collection of parameters that describe a transfer function. These parameters describe properties like histogram settings, contrast stretch, gamma value, and others.

Mira uses a default transfer function profile for opening new images. After an image is open, you can change the profile or the settings of the profile for that particular image. You can also update the default profile.

There are 2 places in Mira from which transfer function profiles can be accessed:

tip

All Range settings other than Specify Z adjust the range value to the histogram of each image. When applying to an Image Set, this property allows the transfer function to accommodate differing image properties.

The Specify Z setting does not accommodate the needs of individual images. When applying to an Image Set, you may not get the expected result for all images unless their luminance histograms are similar.

Stretch Parameter

This property describes how luminance inside the Range is assigned to different bins, or palette indices. By crowding together or spreading out the values assigned to each bin, you can change the contrast within different portions of the image luminance range. The Stretch parameter specifies the mathematical method used to set limits on the luminance bins.

  1. The Linear option sets equal steps of image luminance for all bins. This means, for example, that the feature contrast at low brightness levels will be the same as the feature contrast at high brightness levels.

  2. The Logarithmic option compresses the luminance values at the dark end and spreads out the intervals at the brighter end of the image histogram. This gives a faster rate of change of bin index per luminance value at the darker end so the contrast of dark features is enhanced. The rate of change at the bright end is very low, so the feature contrast is reduced at the bright end of the histogram. This setting is a good choice for images where you want to see a lot of contrast in faint background features at the expense of details in bright features.

  3. The Gamma option is a very versatile one that lets you shift the contrast bias to higher or lower levels or anywhere between. A Gamma value less than 1 shifts the higher contrast to lower luminance and a gamma value greater than 1 shifts the higher contrast to higher luminance. A value of exactly 1.0 gives the same result as a Linear stretch.

Related Topics

Transfer Function Properties, Palette Properties, Displaying an Image