Medical Imaging Interaction Toolkit  2018.4.99-12ad79a3
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 namespace mitk
14 {
16  namespace ColorConversions
17  {
19  void Hsv2Rgb(float h, float s, float v, float &r, float &g, float &b);
21  void Rgb2Hsv(float r, float g, float b, float &h, float &s, float &v);
22 
23  } // ColorConversion
24 
25 } // mitk
DataCollection - Class to facilitate loading/accessing structured data.
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
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