21 m_CaptureWidth(0), m_CaptureHeight(0), m_NumImg(0), m_MaxRangeFactor(0.0), m_ConnectionCheck(false),
65 amplitudeArray[i] = 0;
69 unsigned short value = data[i] & 0x7fff;
70 unsigned short value2 = value >> 2;
71 amplitudeArray[i] = value2;
83 intensityArray[i] = data[i];
102 if (data[i] < 0xFFF8)
108 distanceArray[i] = 0.0;
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)
virtual bool GetAmplitudes(float *amplitudeArray)
Gets the current amplitude array from the device.
int m_PixelNumber
holds the number of pixels contained in the image
~ToFCameraMESAController()
virtual bool CloseCameraConnection()
closes the connection to the camera
virtual bool UpdateCamera()
calls update on the camera -> a new ToF-image is aquired
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
ToFCameraMESAController()
virtual void SetInputFileName(std::string inputFileName)
set input file name used by MESA player classes
virtual bool GetDistances(float *distanceArray)
Gets the current distance array from the device.
virtual bool GetIntensities(float *intensityArray)
Gets the current intensity array from the device.
bool ErrorText(int error)
Method printing the current error message to the console and returning whether the previous command w...
CMesaDevice * m_MESAHandle