IMAGE STRETCHING

The image contrast stretching is a basic step to highlight the sought details. Every time an image is taken, it is carried on the video as follows : the lowest value (or the value setted like lowest) corresponds to black colour, the highest value (or the value setted like lowest) to white colour. It may seldom happen that this default representation reaches the required visualization; it is much more likely you have to change these two values to optimize the visualization, keeping in mind that your PC can't show more than 256 grey levels and human eye can only distinguish a far smaller number!

The streching control is probably the most important image treatment. To perform it correctly, it is necessary to run the histogram properly : this statistical interactive indicator shows the way image numerical values spread over the used colour palette. This tool can also change the ways the image is visualized, but NEVER CHANGES ITS CONTENT. It often happens that the automatic streching, especially for extremely faint objects, may generate images with too low contrast and then the histogram control and regulation becomes important to reach high-quality visualizations.

The following example shows this clearly. It is a RAW image. At the beginning, the much more bright pixels (hot pixels) compress the dynamic visualization (the min/max on histogram) which has been adopted (min/max), thus not allowing to highlight fainter structures of the image. Once you have manually modified the min/max values, by operating on histogram as is shown in the Fig. 3-4 below, you can obtain more hot pixels visible on the image. Then we obtained also a fainter structure on the image!!

Fig. 1 Original image stretched with Min/Max

Fig. 2 Histogram of the original image

Fig 3 Stretched image

Fig. 4 Histogram of the stretched image

VISUAL INTERACTION BY MEANS OF THE HISTOGRAM

One of the easiest way to adjust the histogram (and therefore the stretching) at best, is to work directly on the graphic representation by means of the mouse. In practice the histogram consists in a statistical distribution telling us where or, better, on which grey or coloured scale the pixels are distributed. By placing the mouse on the palette, under the histogram, and starting from the left side (1) of the distribution, you have to press the left key of the mouse to set the new minimum value. Likewise, if you place the mouse close to the end of the statistical distribution (2) and press the right key of the mouse, you set the maximum value connected to White.