IHS to RGB

This tool transforms three intensity, hue, and saturation (IHS; sometimes HSI or HIS) images raster images into three equivalent multispectral images corresponding with the red, green, and blue channels of an RGB composite. Intensity refers to the brightness of a color, hue is related to the dominant wavelength of light and is perceived as color, and saturation is the purity of the color (Koutsias et al. 2000 Photogrammetric Engineering & Remote Sensing 66:7, 829-839). There are numerous algorithms for performing a red-green-blue (RGB) to IHS transformation. This tool uses the transformation described by Haydn (1982). Note that, based on this transformation, the input IHS values must follow the ranges:

0 < I < 3
0 < H < 3
0 < S < 1

The output red, green, and blue images will have values ranging from 0 to 255. The user must specify the names of the intensity, hue, and saturation images. These images will generally be created using the RGB to IHS tool. The user must also specify the names of the output red, green, and blue images. Image enhancements, such as contrast stretching, are often performed on the individual IHS components, which are then inverse transformed back in RGB components using this tool. The output RGB components can then be used to create an improved color composite image.

References:

See Also:

Scripting:

The following is an example of a Python script that uses this tool:

wd = pluginHost.getWorkingDirectory()
intensityFile = wd + "intensity.dep"
hueFile = wd + "hue.dep"
saturationFile = wd + "saturation.dep"
redFile = wd + "red_band.dep"
greenFile = wd + "green_band.dep"
blueFile = wd + "blue_band.dep"
args = [intensityFile, hueFile, saturationFile, redFile, greenFile, blueFile]
pluginHost.runPlugin("IHStoRGB", args, False)

This is a Groovy script also using this tool:

def wd = pluginHost.getWorkingDirectory()
def intensityFile = wd + "intensity.dep"
def hueFile = wd + "hue.dep"
def saturationFile = wd + "saturation.dep"
def redFile = wd + "red_band.dep"
def greenFile = wd + "green_band.dep"
def blueFile = wd + "blue_band.dep"
String[] args = [intensityFile, hueFile, saturationFile, redFile, greenFile, blueFile]
pluginHost.runPlugin("IHStoRGB", args, false)

Credits: