Tetrapod Project
|
#include "visualization_utils/hsvrgb.h"
Go to the source code of this file.
Functions | |
void | RGBtoHSV (double &fR, double &fG, double fB, double &fH, double &fS, double &fV) |
Convert RGB to HSV color space. More... | |
void | HSVtoRGB (double &fR, double &fG, double &fB, double &fH, double &fS, double &fV) |
Convert HSV to RGB color space. More... | |
void RGBtoHSV | ( | double & | fR, |
double & | fG, | ||
double | fB, | ||
double & | fH, | ||
double & | fS, | ||
double & | fV | ||
) |
Convert RGB to HSV color space.
Converts a given set of RGB values ‘r’, ‘g’, ‘b’ into HSV coordinates. The input RGB values are in the range [0, 1], and the output HSV values are in the ranges h = [0, 360], and s, v = [0, 1], respectively.
fR | Red component, used as input, range: [0, 1] |
fG | Green component, used as input, range: [0, 1] |
fB | Blue component, used as input, range: [0, 1] |
fH | Hue component, used as output, range: [0, 360] |
fS | Hue component, used as output, range: [0, 1] |
fV | Hue component, used as output, range: [0, 1] |
Definition at line 49 of file hsvrgb.cpp.
void HSVtoRGB | ( | double & | fR, |
double & | fG, | ||
double & | fB, | ||
double & | fH, | ||
double & | fS, | ||
double & | fV | ||
) |
Convert HSV to RGB color space.
Converts a given set of HSV values ‘h’, ‘s’, ‘v’ into RGB coordinates. The output RGB values are in the range [0, 1], and the input HSV values are in the ranges h = [0, 360], and s, v = [0, 1], respectively.
fR | Red component, used as output, range: [0, 1] |
fG | Green component, used as output, range: [0, 1] |
fB | Blue component, used as output, range: [0, 1] |
fH | Hue component, used as input, range: [0, 360] |
fS | Hue component, used as input, range: [0, 1] |
fV | Hue component, used as input, range: [0, 1] |
Definition at line 96 of file hsvrgb.cpp.