Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
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,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 #ifndef __mitkToFCameraMESAController_h
17 #define __mitkToFCameraMESAController_h
18 
19 #include <MitkMESASR4000ModuleExports.h>
20 #include "mitkCommon.h"
21 
22 #include "itkObject.h"
23 #include "itkObjectFactory.h"
24 
25 namespace mitk
26 {
34  class MITKMESASR4000_EXPORT ToFCameraMESAController : public itk::Object
35  {
36  public:
37 
39 
43  virtual bool OpenCameraConnection() = 0;
47  virtual bool CloseCameraConnection();
52  virtual bool GetAmplitudes(float* amplitudeArray);
57  virtual bool GetIntensities(float* intensityArray);
62  virtual bool GetDistances(float* distanceArray);
66  virtual bool UpdateCamera();
71  virtual int GetModulationFrequency() = 0;
79  virtual int SetModulationFrequency(unsigned int modulationFrequency) = 0;
84  virtual int GetIntegrationTime() = 0;
92  virtual int SetIntegrationTime(unsigned int integrationTime) = 0;
96  virtual void SetInputFileName(std::string inputFileName);
101  itkGetMacro(CaptureWidth, unsigned int);
106  itkGetMacro(CaptureHeight, unsigned int);
107 
108  protected:
109 
111 
113 
119  bool ErrorText(int error);
120 
121  char m_MESAError[128];
122  int m_MESARes;
123 
126  unsigned int m_CaptureWidth;
127  unsigned int m_CaptureHeight;
128 
129  int m_NumImg;
130 
132 
134 
135  std::string m_InputFileName;
136 
137  private:
138 
139  };
140 } //END mitk namespace
141 #endif
float m_MaxRangeFactor
holds the factor to calculate the real distance depends on the modulation frequency ...
int m_MESARes
holds the current result message provided by MESA
DataCollection - Class to facilitate loading/accessing structured data.
int m_NumImg
holds the number of images the camera provided (distance, intensity, etc)
int m_NumberOfBytes
holds the number of bytes contained in the image
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:53
std::string m_InputFileName
input file name used by MESA player classes
unsigned int m_CaptureHeight
holds the height of the image in pixel
Virtual interface and base class for all MESA Time-of-Flight devices. Wraps MESA API provided in libr...
bool m_ConnectionCheck
flag showing whether the camera is connected (true) or not (false)
unsigned int m_CaptureWidth
holds the width of the image in pixel
int m_PixelNumber
holds the number of pixels contained in the image