Medical Imaging Interaction Toolkit  2018.4.99-3e3f1a6e
Medical Imaging Interaction Toolkit
mitkLabeledImageLookupTable.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 MITKMITKLABELEDIMAGELOOKUPTABLE_H
14 #define MITKMITKLABELEDIMAGELOOKUPTABLE_H
15 
17 #include "mitkLevelWindow.h"
18 #include "mitkLookupTable.h"
19 #include <iostream>
20 #include <string>
21 
22 namespace mitk
23 {
34  {
35  public:
40 
44  itkFactorylessNewMacro(Self);
45  itkCloneMacro(Self);
46 
51  typedef unsigned char LabelType;
52 
53  LabeledImageLookupTable &operator=(const LookupTable &other) override;
54 
63  virtual void SetColorForLabel(
64  const LabelType &label, const double &r, const double &g, const double &b, const double a = 1.0);
65 
72  virtual double *GetColorForLabel(const LabelType &label);
73 
80  mitk::LevelWindow GetLevelWindow() { return m_LevelWindow; }
81  protected:
86 
88 
92  ~LabeledImageLookupTable() override;
93 
98  virtual void GenerateRandomColor(double &r, double &g, double &b);
103  virtual double GenerateRandomNumber();
104 
106 
107  private:
108  itk::LightObject::Pointer InternalClone() const override;
109  };
110 }
111 
112 #endif
#define MITKDATATYPESEXT_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
The LevelWindow class Class to store level/window values.
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
The LookupTable class mitk wrapper for a vtkLookupTableThis class can be used to color images with a ...