Virtual interface and base class for all MESA Time-of-Flight devices. Wraps MESA API provided in library Provides methods for accessing current distance, amplitude, intensity and raw data. Allows to set parameters like modulation frequency and integration time.
More...
#include <mitkToFCameraMESAController.h>
Virtual interface and base class for all MESA Time-of-Flight devices. Wraps MESA API provided in library Provides methods for accessing current distance, amplitude, intensity and raw data. Allows to set parameters like modulation frequency and integration time.
Definition at line 30 of file mitkToFCameraMESAController.h.
◆ ToFCameraMESAController()
mitk::ToFCameraMESAController::ToFCameraMESAController |
( |
| ) |
|
|
protected |
◆ ~ToFCameraMESAController()
mitk::ToFCameraMESAController::~ToFCameraMESAController |
( |
| ) |
|
|
protected |
◆ CloseCameraConnection()
virtual bool mitk::ToFCameraMESAController::CloseCameraConnection |
( |
| ) |
|
|
virtual |
closes the connection to the camera
◆ ErrorText()
bool mitk::ToFCameraMESAController::ErrorText |
( |
int |
error | ) |
|
|
protected |
Method printing the current error message to the console and returning whether the previous command was successful.
- Parameters
-
error | error number returned by the MESA function |
- Returns
- flag indicating if an error occured (false) or not (true)
◆ GetAmplitudes()
virtual bool mitk::ToFCameraMESAController::GetAmplitudes |
( |
float * |
amplitudeArray | ) |
|
|
virtual |
Gets the current amplitude array from the device.
- Parameters
-
amplitudeArray | float array where the amplitude data will be saved |
◆ GetCaptureHeight()
virtual unsigned int mitk::ToFCameraMESAController::GetCaptureHeight |
( |
| ) |
|
|
virtual |
Access the resolution of the image in y direction.
- Returns
- height of image in pixel
◆ GetCaptureWidth()
virtual unsigned int mitk::ToFCameraMESAController::GetCaptureWidth |
( |
| ) |
|
|
virtual |
Access the resolution of the image in x direction.
- Returns
- widht of image in pixel
◆ GetDistances()
virtual bool mitk::ToFCameraMESAController::GetDistances |
( |
float * |
distanceArray | ) |
|
|
virtual |
Gets the current distance array from the device.
- Parameters
-
distanceArray | float array where the distance data will be saved |
◆ GetIntegrationTime()
virtual int mitk::ToFCameraMESAController::GetIntegrationTime |
( |
| ) |
|
|
pure virtual |
◆ GetIntensities()
virtual bool mitk::ToFCameraMESAController::GetIntensities |
( |
float * |
intensityArray | ) |
|
|
virtual |
Gets the current intensity array from the device.
- Parameters
-
intensityArray | float array where the intensity data will be saved |
◆ GetModulationFrequency()
virtual int mitk::ToFCameraMESAController::GetModulationFrequency |
( |
| ) |
|
|
pure virtual |
◆ mitkClassMacroItkParent()
◆ OpenCameraConnection()
virtual bool mitk::ToFCameraMESAController::OpenCameraConnection |
( |
| ) |
|
|
pure virtual |
◆ SetInputFileName()
virtual void mitk::ToFCameraMESAController::SetInputFileName |
( |
std::string |
inputFileName | ) |
|
|
virtual |
set input file name used by MESA player classes
◆ SetIntegrationTime()
virtual int mitk::ToFCameraMESAController::SetIntegrationTime |
( |
unsigned int |
integrationTime | ) |
|
|
pure virtual |
Sets the integration time of the ToF device. The method automatically calculates a valid value from the given integration time to make sure that only valid times are used.
- Parameters
-
integrationTime | integration time |
- Returns
- integration time set after validation step
Implemented in mitk::ToFCameraMESASR4000Controller.
◆ SetModulationFrequency()
virtual int mitk::ToFCameraMESAController::SetModulationFrequency |
( |
unsigned int |
modulationFrequency | ) |
|
|
pure virtual |
Sets the modulation frequency of the ToF device. The method automatically calculates a valid value from the given frequency to make sure that only valid frequencies are used.
- Parameters
-
modulationFrequency | modulation frequency |
- Returns
- frequency set after validation step
Implemented in mitk::ToFCameraMESASR4000Controller.
◆ UpdateCamera()
virtual bool mitk::ToFCameraMESAController::UpdateCamera |
( |
| ) |
|
|
virtual |
calls update on the camera -> a new ToF-image is aquired
◆ m_CaptureHeight
unsigned int mitk::ToFCameraMESAController::m_CaptureHeight |
|
protected |
◆ m_CaptureWidth
unsigned int mitk::ToFCameraMESAController::m_CaptureWidth |
|
protected |
◆ m_ConnectionCheck
bool mitk::ToFCameraMESAController::m_ConnectionCheck |
|
protected |
◆ m_InputFileName
std::string mitk::ToFCameraMESAController::m_InputFileName |
|
protected |
◆ m_MaxRangeFactor
float mitk::ToFCameraMESAController::m_MaxRangeFactor |
|
protected |
◆ m_MESAError
char mitk::ToFCameraMESAController::m_MESAError[128] |
|
protected |
◆ m_MESARes
int mitk::ToFCameraMESAController::m_MESARes |
|
protected |
◆ m_NumberOfBytes
int mitk::ToFCameraMESAController::m_NumberOfBytes |
|
protected |
◆ m_NumImg
int mitk::ToFCameraMESAController::m_NumImg |
|
protected |
◆ m_PixelNumber
int mitk::ToFCameraMESAController::m_PixelNumber |
|
protected |
The documentation for this class was generated from the following file: