21 #include "vnl/vnl_matrix.h"
26 struct SourceDataStruct {
27 PMDDataDescription dataDescription;
34 m_CaptureWidth(200), m_CaptureHeight(200),m_InternalCaptureWidth(m_CaptureWidth),m_InternalCaptureHeight(m_CaptureHeight), m_SourceDataSize(0), m_SourceDataStructSize(0), m_ConnectionCheck(false),
147 return integrationTime;
150 this->
m_PMDRes = pmdGetValidIntegrationTime(
m_PMDHandle, &result, 0, CloseTo, integrationTime);
151 MITK_INFO <<
"Valid Integration Time = " << result;
164 unsigned int integrationTime = 0;
167 return integrationTime;
174 return modulationFrequency;
177 this->
m_PMDRes = pmdGetValidModulationFrequency(
m_PMDHandle, &result, 0, AtLeast, (modulationFrequency*1000000));
178 MITK_INFO <<
"Valid Modulation Frequency = " << result;
186 return (result/1000000);;
191 unsigned int modulationFrequency = 0;
194 return (modulationFrequency/1000000);
virtual void TransformCameraOutput(float *in, float *out, bool isDist)=0
virtual bool GetSourceData(char *sourceDataArray)
Gets the PMD raw data from the ToF device.
virtual bool UpdateCamera()
calls update on the camera -> a new ToF-image is aquired
virtual bool CloseCameraConnection()
closes the connection to the camera
virtual void SetInputFileName(std::string inputFileName)
set input file name used by PMD player classes
virtual int SetIntegrationTime(unsigned int integrationTime)
Sets the integration time of the ToF device. The method automatically calculates a valid value from t...
DataCollection - Class to facilitate loading/accessing structured data.
bool m_ConnectionCheck
flag showing whether the camera is connected (true) or not (false)
int m_NumberOfBytes
holds the number of bytes contained in the image
~ToFCameraPMDController()
virtual int GetIntegrationTime()
Returns the currently set integration time.
unsigned int m_CaptureHeight
holds the height of the image in pixel as it is originally acquired by the camera ...
PMDDataDescription m_DataDescription
virtual int GetModulationFrequency()
Returns the currently set modulation frequency.
bool ErrorText(int error)
Method printing the current error message to the console and returning whether the previous command w...
unsigned int m_CaptureWidth
holds the width of the image in pixel as it is originally acquired by the camera
std::string m_InputFileName
input file name used by PMD player classes
int m_PMDRes
holds the current result message provided by PMD
char m_PMDError[128]
member holding the current error text
virtual bool GetDistances(float *distanceArray)
Gets the current distance array from the device.
virtual bool GetAmplitudes(float *amplitudeArray)
Gets the current amplitude 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...
bool GetShortSourceData(short *sourceData)
Convenience method to get the PMD raw data from the ToF device as short array.
virtual bool GetIntensities(float *intensityArray)
Gets the current intensity array from the device.
int m_SourceDataSize
size of the original PMD source data