Support
Home > Skip Navigation LinksSUPPORT > SUPPORT > Procedures > Create a Common LUT for multiple 16 bit images

Create a Common LUT for multiple 16 bit images

Download PDF

This procedure will help overcome contrast differences between two halves of a 16-bit image with contrast stretches. It will show how to apply a common LUT to the two image halves. This will be particularly helpful for users of IKONOS multi-segment images, who require a common LUT for all images. Such data is 11 bit data treated as 16 bit data in IMAGINE.



Why is this procedure necessary?

Basically, 16 bit (or 11 bit treated as 16 bit) cannot be displayed on a 256 grey-level color gun. So IMAGINE generally bins the data for you into 256 bins. Where the bins occur depends upon the distribution of the input image. Even if you Direct Bin the data (as many bins as max - min), the binning occurs between the minimum and maximum data values for that image. Consequently two 16-bit images generally don't have the same binning structure and therefore it's difficult to copy breakpoints from one to another (because the breakpoint in one might not exist in the histogram of the other!).

The ideal solution is to mosaic the two halves back together again once you've received them. Then, you would have no problems. A single LUT could be used for the image mosaic.


The steps to follow:

1. You can do this using either Direct or Linear binning when computing the statistics - it's your choice. However, just remember to consistently use the same technique throughout these instructions depending on which technique you want to use. This example uses Direct Binning because it is the most appropriate method when creating LUTs for 16-bit data.

2. Using ImageInfo calculate statistics for each image using your chosen binning technique (Direct Binning in this example). You may want to include zeros in the calculation. This will make life easier below because you don't have to bother with finding out the highest Min value (it'll be 0 in both probably), but does waste bins, so it's better to exclude zeros. In this example zero values were ignored.


3. Display both images in the same Viewer. Let's call them Image1 and Image2. Image 2 is on top of the stack because it was second into the Viewer.

4. Open the Data Scaling tool under the Raster menu.


To be able to apply a LUT from one image onto another image you need to have the same ranges (and binning) set for each image. So, you need to know what range you need to set. Unfortunately you can't specify a range bigger than the min - max range for an image, so you have to use a common smaller range. Therefore, the first step is to note the data ranges for each image. In the Data Scaling tool make a note, for Image2, what is the Min and Max for the red band and repeat for green and blue (obviously you only need to do this once if looking at a grey scale image). Note that if you included zeros in the stats calculation, the Min may always be 0.


5. Use Arrange Layers to bring Image1 to the top and bring up the Data Scaling tool for Image1 - repeat the process in step 4.

The results below show an example:

Image Band Min Max
Image1 Red 61 325
Image1 Green 41 359
Image1 Blue 33 503
Image2 Red 61 325
Image2 Green 41 359
Image2 Blue 33 503

6. Now you need to know, for each band, what is the highest Min and what is the lowest Max (because you need a range which is common to both images. Make a note of what the ranges are for each band.

For example the ranges for each band are:

Band Min Max
Red 61 325
Green 41 359
Blue 46 503

7. Using the Data Scaling tool you still have up for Image1, type in the new Min and Max values for each band. Click the Save icon on the Viewer (new stats will be calculated based on the new data range)

8. Use Arrange Layers to bring Image2 to the top, bring up the Data Scale tool and enter the same ranges. Click Save for Image2.

9. Now the two images have a common statistical range. Their contrast should match in the viewer, although this may not be the final contrast stretch. Bring up whatever LUT tool you want to use (e.g. using the Break Point Editor) and create a LUT for Image2 which you like.

10. In the Breakpoint editor for Image2, use the right mouse button in the Red histogram area (white box) to get the Options list and pick Copy LUT for the Red LUT.

11. Using the Arrange Layers dialog also bring up the Breakpoint Editor for Image1 - use the right mouse button in the Red histogram area (white box) to get the Options list and pick Paste LUT.

12. Repeat for the Green and Blue histograms. Click 'Apply All' in both Breakpoint Editors to apply the changes. These will be saved to the Lookup Table (image header).

13. Save the images again so that the common LUT is used next time you open these images in an IMAGINE viewer again.




Part of Hexagon © Copyright Intergraph Corporation Part of Hexagon | Site Map | Terms of Use | Privacy | Subscribe | RSS | + Share
WebsiteFeedback