12#ifndef mitkToFCameraMESAController_h
13#define mitkToFCameraMESAController_h
15#include <MitkMESASR4000ModuleExports.h>
16#include "mitkCommon.h"
19#include "itkObjectFactory.h"
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();
92 virtual void SetInputFileName(std::string inputFileName);
115 bool ErrorText(
int error);
117 char m_MESAError[128];
Virtual interface and base class for all MESA Time-of-Flight devices. Wraps MESA API provided in libr...
virtual bool OpenCameraConnection()=0
opens a connection to the ToF camera. Has to be implemented by the sub class
std::string m_InputFileName
input file name used by MESA player classes
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
virtual int GetModulationFrequency()=0
Returns the currently set modulation frequency.
virtual int SetIntegrationTime(unsigned int integrationTime)=0
Sets the integration time of the ToF device. The method automatically calculates a valid value from t...
unsigned int m_CaptureHeight
holds the height of the image in pixel
int m_PixelNumber
holds the number of pixels contained in the image
mitkClassMacroItkParent(ToFCameraMESAController, itk::Object)
int m_NumImg
holds the number of images the camera provided (distance, intensity, etc)
itkGetMacro(CaptureHeight, unsigned int)
Access the resolution of the image in y direction.
itkGetMacro(CaptureWidth, unsigned int)
Access the resolution of the image in x direction.
int m_NumberOfBytes
holds the number of bytes contained in the image
float m_MaxRangeFactor
holds the factor to calculate the real distance depends on the modulation frequency
virtual int SetModulationFrequency(unsigned int modulationFrequency)=0
Sets the modulation frequency of the ToF device. The method automatically calculates a valid value fr...
int m_MESARes
holds the current result message provided by MESA
virtual int GetIntegrationTime()=0
Returns the currently set integration time.