RGBToHSV
This function is obsolete and has been replaced in with the ColorSpace
command.
Function
This function converts the channels in RGB (Red, Green, Blue) to HSV (Hue,
Saturation, Value). Any operations done in this space will be applied
to HSV rather than RGB.
Example
In the following tree, we take a file (cropped in for illustration with
the Window command) and
apply an Add to it (node
Add1). We also take the same image and pipe it into RGBToHSV1.
Another Add is applied (Add2), using exactly the same parameters
as are in Add1. Because Add2 is in HSV space, when we add
to the red channel, we actually are shifting the hue. Similarly, adding
to the green shifts the saturation. To see the results properly, we finish
with a HSVToRGB to
convert it back to proper RGB viewing space.

Window1

|
Add1

|
Add2

|
HSVToRGB1

|
Synopsis
image RGBToHSV( image );
Script
image = RGBToHSV( image );
Command Line
shake -rgbtohsv
See Also
ColorSpace
|