Parent Topic: IHS

EXAMPLE

The following example uses the IHS and RGB programs to perform data fusion of the ERS-1 radar image on channel 11 with the colour RGB TM image on channels 3, 2, and 1 of irvine.pix. The result is a new colour ERS-1 image, where the intensity comes from the original ERS-1 image and the colour (hue and saturation) come from the original RGB image.

Note: This example overwrites data on channels 1, 2, 3, 6, 7, 8, and 9 of the irvine.pix file.

For best results, input images should be enhanced and scaled before running IHS. The 16-bit ERS-1 image on channel 11 is scaled to an 8-bit image and saved on channel 6, as follows:

 EASI>FILI="irvine.pix"
 EASI>FILO="irvine.pix"
 EASI>DBIC=11
 EASI>DBOC=6
 EASI>DBIW=
 EASI>DBOW=
 EASI>INRANGE=0,1535
 EASI>OUTRANGE=0,255
 EASI>SFUNCT="LIN"
 EASI>RUN SCALE
The 8-bit RGB image on channels 3, 2, and 1 are enhanced using the lookup tables stored in segments 4, 3, and 2, as follows:

 EASI>FILE="irvine.pix"
 EASI>DBIC=3,2,1
 EASI>DBLUT=4,3,2
 EASI>DBOC=3,2,1
 EASI>MASK=
 EASI>RUN LUT
An IHS transformation is performed on the enhanced colour image, using the Cylinder colour model, and saved in channels 7, 8, and 9:

 EASI>FILE="irvine.pix"
 EASI>DBIC=3,2,1
 EASI>DBOC=7,8,9
 EASI>DBIW=
 EASI>IHSMODEL="CYLINDER"
 EASI>RUN IHS
An RGB transformation is performed using the 8-bit scaled ERS-1 image image as the intensity (channel 6), and the hue and saturation images (Channels 8 and 9) derived from the original colour TM image. The new RGB colour image is saved in channels 7, 8, and 9, as follows:

 EASI>FILE="irvine.pix"
 EASI>DBIC=6,8,9
 EASI>DBIC=7,8,9
 EASI>DBIW=
 EASI>RUN RGB
Note: The FUSE procedure could have been used to perform data fusion, instead of running IHS and RGB, as follows:

 EASI>FILI="irvine.pix"
 EASI>DBRGB=3,2,1
 EASI>FILO="irvine.pix"
 EASI>DBINT=6
 EASI>DBOC=7,8,9
 EASI>IHSMODEL="CYLINDER"
 EASI>RESAMPLE=
 EASI>RUN FUSE
Transfer the new colour image on channels 7, 8, and 9 to the display using ImageWorks or IVI:

 EASI>FILE="irvine.pix"
 EASI>DBIC=7,8,9
 EASI>VDOC=1,2,3
 EASI>DBIW=0,0,512,512
 EASI>VDOW=0,0,512,512
 EASI>RUN IVI

Parent Topic: IHS
About PCI Help Gateway