17 #include <libMesaSR.h>
25 m_CaptureWidth(0), m_CaptureHeight(0), m_NumImg(0), m_MaxRangeFactor(0.0), m_ConnectionCheck(false),
69 amplitudeArray[i] = 0;
73 unsigned short value = data[i] & 0x7fff;
74 unsigned short value2 = value >> 2;
75 amplitudeArray[i] = value2;
87 intensityArray[i] = data[i];
106 if (data[i] < 0xFFF8)
112 distanceArray[i] = 0.0;
float m_MaxRangeFactor
holds the factor to calculate the real distance depends on the modulation frequency ...
bool ErrorText(int error)
Method printing the current error message to the console and returning whether the previous command w...
CMesaDevice * m_MESAHandle
virtual bool GetAmplitudes(float *amplitudeArray)
Gets the current amplitude array from the device.
int m_MESARes
holds the current result message provided by MESA
DataCollection - Class to facilitate loading/accessing structured data.
virtual bool UpdateCamera()
calls update on the camera -> a new ToF-image is aquired
~ToFCameraMESAController()
std::string m_InputFileName
input file name used by MESA player classes
virtual bool GetDistances(float *distanceArray)
Gets the current distance array from the device.
virtual void SetInputFileName(std::string inputFileName)
set input file name used by MESA player classes
virtual bool CloseCameraConnection()
closes the connection to the camera
bool m_ConnectionCheck
flag showing whether the camera is connected (true) or not (false)
ToFCameraMESAController()
int m_PixelNumber
holds the number of pixels contained in the image
virtual bool GetIntensities(float *intensityArray)
Gets the current intensity array from the device.