17#include "vnl/vnl_matrix.h"
30 m_CaptureWidth(200), m_CaptureHeight(200),m_InternalCaptureWidth(m_CaptureWidth),m_InternalCaptureHeight(m_CaptureHeight), m_SourceDataSize(0), m_SourceDataStructSize(0), m_ConnectionCheck(false),
143 return integrationTime;
146 this->
m_PMDRes = pmdGetValidIntegrationTime(
m_PMDHandle, &result, 0, CloseTo, integrationTime);
147 MITK_INFO <<
"Valid Integration Time = " << result;
160 unsigned int integrationTime = 0;
163 return integrationTime;
170 return modulationFrequency;
173 this->
m_PMDRes = pmdGetValidModulationFrequency(
m_PMDHandle, &result, 0, AtLeast, (modulationFrequency*1000000));
174 MITK_INFO <<
"Valid Modulation Frequency = " << result;
182 return (result/1000000);;
187 unsigned int modulationFrequency = 0;
190 return (modulationFrequency/1000000);
~ToFCameraPMDController()
virtual int GetIntegrationTime()
Returns the currently set integration time.
int m_PMDRes
holds the current result message provided by PMD
int m_SourceDataSize
size of the original PMD source data
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.
unsigned int m_CaptureHeight
holds the height of the image in pixel as it is originally acquired by the camera
virtual bool GetIntensities(float *intensityArray)
Gets the current intensity array from the device.
virtual int SetModulationFrequency(unsigned int modulationFrequency)
Sets the modulation frequency of the ToF device. The method automatically calculates a valid value fr...
virtual bool CloseCameraConnection()
closes the connection to the camera
bool ErrorText(int error)
Method printing the current error message to the console and returning whether the previous command w...
std::string m_InputFileName
input file name used by PMD player classes
int m_NumberOfBytes
holds the number of bytes contained in the image
virtual bool GetSourceData(char *sourceDataArray)
Gets the PMD raw data from the ToF device.
virtual int SetIntegrationTime(unsigned int integrationTime)
Sets the integration time of the ToF device. The method automatically calculates a valid value from t...
bool GetShortSourceData(short *sourceData)
Convenience method to get the PMD raw data from the ToF device as short array.
virtual int GetModulationFrequency()
Returns the currently set modulation frequency.
virtual bool GetDistances(float *distanceArray)
Gets the current distance array from the device.
char m_PMDError[128]
member holding the current error text
unsigned int m_CaptureWidth
holds the width of the image in pixel as it is originally acquired by the camera
virtual bool UpdateCamera()
calls update on the camera -> a new ToF-image is aquired
virtual void TransformCameraOutput(float *in, float *out, bool isDist)=0
virtual void SetInputFileName(std::string inputFileName)
set input file name used by PMD player classes
PMDDataDescription m_DataDescription
PMDDataDescription m_DataDescription
PMDDataDescription dataDescription