Home

Quick Links

Software Manual
GitHub
API Reference

Documentation Versions

Latest Release
Dev
8.3.0
8.2.0
8.1.0
8.0.0
7.2.0
7.1.0
7.0.0
6.0.0
3.9.0
3.5.0
USGS

ISIS Application Documentation


hsv2rgb

Printer Friendly View | TOC | Home

Convert HSV to RGB

Overview Parameters Example 1

Description

This program takes in three input images, representing Hue, Saturation, and Value, then outputs Red, Green, and Blue files respectively. It works by creating an HSV pixel from pixels in the Hue, Saturation, and Value files, converting it to RGB format, then writing the data to the Red, Green, and Blue files.

HSV Stores colors in terms of hue, saturation, and value. The hue determines the color, which is an angle around the color wheel. The basic colors are: 0 degrees = RED, 60 degrees = YELLOW, 120 degrees = GREEN, 180 degrees = CYAN, 240 degrees = BLUE and 300 degrees = PURPLE. The saturation is how much grey is in the color (intensity of the color). A saturation value of zero means it's perfect, while a saturation value of 1 would cause any color to become pure grey. As an example, the color RGB(255,0,0) is pure so the saturation would be zero. The value is how bright the color is. A value of 0 is always black, and 100 is the color (if not saturated).
In brief,
HUE = COLOR (degrees around the color wheel)
SATURATION = INTENSITY (0-1, 0 being no color/grey)
VALUE = BRIGHTNESS (0 being black)

For more information, see
http://en.wikipedia.org/wiki/Color_spaces

Categories


Related Objects and Documents

Applications


History

Sean Crosby2006-01-05 Original version
Steven Lambright2007-06-20 Added comment explaining what HSV is and what the code is doing. Also, added code for boundary cases.

U.S. Department of the Interior | U.S. Geological Survey
ISIS | Privacy & Disclaimers | Astrogeology Research Program
To contact us, please post comments and questions on the USGS Astrogeology Discussion Board
To report a bug, or suggest a feature go to: ISIS Github
File Modified: 02/21/2025 19:28:11
X

Input Files: HUE


Description

This file will be converted from Hue to Red

Type cube
File Mode input
Filter *.cub
Close Window
X

Input Files: SATURATION


Description

This file will be converted from Saturation to Green

Type cube
File Mode input
Filter *.cub
Close Window
X

Input Files: VALUE


Description

This file will be converted from Value to Blue

Type cube
File Mode input
Filter *.cub
Close Window
X

Output Files: RED


Description

The resultant Hue cube

Type cube
File Mode output
Pixel Type real
Filter *.cub
Close Window
X

Output Files: GREEN


Description

The resultant Saturation cube

Type cube
File Mode output
Pixel Type real
Filter *.cub
Close Window
X

Output Files: BLUE


Description

The resultant Value cube

Type cube
File Mode output
Pixel Type real
Filter *.cub
Close Window
X

Multiplier: SCALAR


Description

This value can be used to alter the DNs of the VALUE image

Type double
Default 1.0
Minimum 0.0 (inclusive)
Close Window