Medical Imaging Interaction Toolkit  2026.06.00
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  {
31  void Hsv2Rgb(float h, float s, float v, float &r, float &g, float &b);
32 
43  void Rgb2Hsv(float r, float g, float b, float &h, float &s, float &v);
44 
45  }
46 }
47 
48 #endif
void Hsv2Rgb(float h, float s, float v, float &r, float &g, float &b)
Convert an HSV color to RGB.
void Rgb2Hsv(float r, float g, float b, float &h, float &s, float &v)
Convert an RGB color to HSV.
Find image slices visible on a given plane.