Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
Medical Imaging Interaction Toolkit
mitk::ColorConversions Namespace Reference

some conversion routines to convert between different color spaces More...

Functions

void Hsv2Rgb (float h, float s, float v, float &r, float &g, float &b)
 convert a HSV color to RGB color, H from 0 to 360, all other parameters 0 to 1 More...
 
void Rgb2Hsv (float r, float g, float b, float &h, float &s, float &v)
 convert a RGB color to HSV color, rgb parameters from 0 to 1 More...
 

Detailed Description

some conversion routines to convert between different color spaces

Function Documentation

◆ Hsv2Rgb()

void mitk::ColorConversions::Hsv2Rgb ( float  h,
float  s,
float  v,
float &  r,
float &  g,
float &  b 
)

convert a HSV color to RGB color, H from 0 to 360, all other parameters 0 to 1

Definition at line 28 of file mitkColorConversions.cpp.

Referenced by mitk::ColorSequenceCycleH::GetNextColor().

◆ Rgb2Hsv()

void mitk::ColorConversions::Rgb2Hsv ( float  r,
float  g,
float  b,
float &  h,
float &  s,
float &  v 
)

convert a RGB color to HSV color, rgb parameters from 0 to 1

Definition at line 91 of file mitkColorConversions.cpp.