Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
mitkToFCameraMESAController.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 #ifndef mitkToFCameraMESAController_h
13 #define mitkToFCameraMESAController_h
14 
15 #include <MitkMESASR4000ModuleExports.h>
16 #include "mitkCommon.h"
17 
18 #include "itkObject.h"
19 #include "itkObjectFactory.h"
20 
21 namespace mitk
22 {
30  class MITKMESASR4000_EXPORT ToFCameraMESAController : public itk::Object
31  {
32  public:
33 
35 
39  virtual bool OpenCameraConnection() = 0;
43  virtual bool CloseCameraConnection();
48  virtual bool GetAmplitudes(float* amplitudeArray);
53  virtual bool GetIntensities(float* intensityArray);
58  virtual bool GetDistances(float* distanceArray);
62  virtual bool UpdateCamera();
67  virtual int GetModulationFrequency() = 0;
75  virtual int SetModulationFrequency(unsigned int modulationFrequency) = 0;
80  virtual int GetIntegrationTime() = 0;
88  virtual int SetIntegrationTime(unsigned int integrationTime) = 0;
92  virtual void SetInputFileName(std::string inputFileName);
97  itkGetMacro(CaptureWidth, unsigned int);
102  itkGetMacro(CaptureHeight, unsigned int);
103 
104  protected:
105 
107 
109 
115  bool ErrorText(int error);
116 
117  char m_MESAError[128];
118  int m_MESARes;
119 
122  unsigned int m_CaptureWidth;
123  unsigned int m_CaptureHeight;
124 
125  int m_NumImg;
126 
128 
130 
131  std::string m_InputFileName;
132 
133  private:
134 
135  };
136 } //END mitk namespace
137 #endif
mitk::ToFCameraMESAController::m_NumberOfBytes
int m_NumberOfBytes
holds the number of bytes contained in the image
Definition: mitkToFCameraMESAController.h:121
mitk::ToFCameraMESAController::m_PixelNumber
int m_PixelNumber
holds the number of pixels contained in the image
Definition: mitkToFCameraMESAController.h:120
mitk::ToFCameraMESAController::m_CaptureHeight
unsigned int m_CaptureHeight
holds the height of the image in pixel
Definition: mitkToFCameraMESAController.h:123
mitk::ToFCameraMESAController::m_ConnectionCheck
bool m_ConnectionCheck
flag showing whether the camera is connected (true) or not (false)
Definition: mitkToFCameraMESAController.h:129
mitk::ToFCameraMESAController::m_NumImg
int m_NumImg
holds the number of images the camera provided (distance, intensity, etc)
Definition: mitkToFCameraMESAController.h:125
mitk::ToFCameraMESAController
Virtual interface and base class for all MESA Time-of-Flight devices. Wraps MESA API provided in libr...
Definition: mitkToFCameraMESAController.h:30
mitkClassMacroItkParent
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:45
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitk::ToFCameraMESAController::m_CaptureWidth
unsigned int m_CaptureWidth
holds the width of the image in pixel
Definition: mitkToFCameraMESAController.h:122
mitk::ToFCameraMESAController::m_InputFileName
std::string m_InputFileName
input file name used by MESA player classes
Definition: mitkToFCameraMESAController.h:131
mitkCommon.h
mitk::ToFCameraMESAController::m_MESARes
int m_MESARes
holds the current result message provided by MESA
Definition: mitkToFCameraMESAController.h:118
mitk::ToFCameraMESAController::m_MaxRangeFactor
float m_MaxRangeFactor
holds the factor to calculate the real distance depends on the modulation frequency
Definition: mitkToFCameraMESAController.h:127