Medical Imaging Interaction Toolkit  2024.06.99-692c34ce
Medical Imaging Interaction Toolkit
mitkColorConversions.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef mitkColorConversions_h
14 #define mitkColorConversions_h
15 
16 namespace mitk
17 {
19  namespace ColorConversions
20  {
22  void Hsv2Rgb(float h, float s, float v, float &r, float &g, float &b);
24  void Rgb2Hsv(float r, float g, float b, float &h, float &s, float &v);
25 
26  }
27 }
28 
29 #endif
mitk::ColorConversions::Hsv2Rgb
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
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::ColorConversions::Rgb2Hsv
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