Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitkPASpectralUnmixingSO2.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 MITKPHOTOACOUSTICSPECTRALUNMIXINGSO2_H
14 #define MITKPHOTOACOUSTICSPECTRALUNMIXINGSO2_H
15 
16 #include "mitkImageToImageFilter.h"
18 
19 //Includes for smart pointer usage
20 #include "mitkCommon.h"
21 #include "itkLightObject.h"
22 
23 
24 namespace mitk {
25  namespace pa {
42  {
43  public:
45  itkFactorylessNewMacro(Self);
46 
51  virtual void AddSO2Settings(int value);
52 
57  virtual void Verbose(bool verbose);
58 
59  protected:
64  ~SpectralUnmixingSO2() override;
65 
66  std::vector<int> m_SO2Settings;
67  bool m_Verbose = false;
68 
69  private:
74  void GenerateData() override;
75 
79  virtual void InitializeOutputs();
80 
86  virtual void CheckPreConditions(mitk::Image::Pointer inputHbO2, mitk::Image::Pointer inputHb);
87 
95  float CalculateSO2(float pixelHb, float pixelHbO2);
96 
103  float CalculateTHb(float pixelHb, float pixelHbO2);
104 
108  bool SO2ValueNotSiginificant(float Hb, float HbO2, float result);
109  };
110  }
111 }
112 #endif // MITKPHOTOACOUSTICSPECTRALUNMIXINGSO2_
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
derives out of two identical sized MITK images the oxygen saturation and return one MITK image as res...
#define mitkClassMacro(className, SuperClassName)
Definition: mitkCommon.h:40
bool verbose(false)
Superclass of all classes having one or more Images as input and generating Images as output...
#define MITKPHOTOACOUSTICSLIB_EXPORT