TransHToRGB
Convert Hue to RGB
int TransHToRGB(
const int hue,
float *gain
)
Parameters
hue
|
Hue (0 - 359)
|
*gain
|
Gain of RGB[3]
[0]:Gain R
[1]:Gain G
[2]:Gain B
|
Return Value
NORMAL(0): Successful completion
Otherwise: Unsuccessful completion
Description
Calculate RGB gain value to make the gray image based on specified hue.
The color gray filter (high speed) is achieved by using the gain value of this library for FilterGrayGrain().
Notes