|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Conversion routines between different color spaces. More...
Functions | |
| void | Hsv2Rgb (float h, float s, float v, float &r, float &g, float &b) |
| Convert an HSV color to RGB. More... | |
| void | Rgb2Hsv (float r, float g, float b, float &h, float &s, float &v) |
| Convert an RGB color to HSV. More... | |
Conversion routines between different color spaces.
| void mitk::ColorConversions::Hsv2Rgb | ( | float | h, |
| float | s, | ||
| float | v, | ||
| float & | r, | ||
| float & | g, | ||
| float & | b | ||
| ) |
Convert an HSV color to RGB.
| h | Hue component (0 to 360). | |
| s | Saturation component (0 to 1). | |
| v | Value component (0 to 1). | |
| [out] | r | Red component (0 to 1). |
| [out] | g | Green component (0 to 1). |
| [out] | b | Blue component (0 to 1). |
| void mitk::ColorConversions::Rgb2Hsv | ( | float | r, |
| float | g, | ||
| float | b, | ||
| float & | h, | ||
| float & | s, | ||
| float & | v | ||
| ) |
Convert an RGB color to HSV.
| r | Red component (0 to 1). | |
| g | Green component (0 to 1). | |
| b | Blue component (0 to 1). | |
| [out] | h | Hue component (0 to 360). |
| [out] | s | Saturation component (0 to 1). |
| [out] | v | Value component (0 to 1). |