An official website of the United States government
Here’s how you know
Official websites use .gov A
.gov website belongs to an official government
organization in the United States.
Secure .gov websites use HTTPS A
lock
() or https:// means you’ve safely connected to
the .gov website. Share sensitive information only on official,
secure websites.
This program takes in three input images, representing Red, Green, and Blue, then outputs Hue, Saturation,
and Value files respectively. It works by creating an RGB pixel from pixels in the Red, Green, and Blue
files, converting it to HSV format, then writing the data to the Hue, Saturation, and Value files.
NOTE: The original input file dn range is compressed down to a value between 0.0 and 1.0 When it comes back out
through hsv2rgb, it remains in the range of 0.0 to 1.0 We currently do not have the capability to return the dn values
to their original value.
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 a perfect color,
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