MITK-IGT
IGT Extension of MITK
|
Interface to the Time-of-Flight (ToF) camera MESA Swissranger 4000. More...
#include <mitkToFCameraMESASR4000Controller.h>
Public Member Functions | |
mitkClassMacro (ToFCameraMESASR4000Controller, mitk::ToFCameraMESAController) | |
itkFactorylessNewMacro (Self) | |
itkCloneMacro (Self) | |
virtual bool | OpenCameraConnection () |
opens a connection to the ToF camera and initializes the hardware specific members | |
virtual int | GetModulationFrequency () |
Returns the currently set modulation frequency. | |
virtual int | SetModulationFrequency (unsigned int modulationFrequency) |
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. | |
virtual int | GetIntegrationTime () |
Returns the currently set integration time. | |
virtual int | SetIntegrationTime (unsigned int integrationTime) |
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. | |
virtual void | SetFPN (bool fpn) |
Sets the acquire mode of the MESA SR4000 camera. The method sets some parameter supported by the MESA SR4000, see MESA API for more details. | |
virtual void | SetConvGray (bool convGray) |
Sets the acquire mode of the MESA SR4000 camera. The method sets some parameter supported by the MESA SR4000, see MESA API for more details. | |
virtual void | SetMedian (bool median) |
Sets the acquire mode of the MESA SR4000 camera. The method sets some parameter supported by the MESA SR4000, see MESA API for more details. | |
virtual void | SetANF (bool anf) |
Sets the acquire mode of the MESA SR4000 camera. The method sets some parameter supported by the MESA SR4000, see MESA API for more details. | |
![]() | |
mitkClassMacroItkParent (ToFCameraMESAController, itk::Object) | |
virtual bool | CloseCameraConnection () |
closes the connection to the camera | |
virtual bool | GetAmplitudes (float *amplitudeArray) |
Gets the current amplitude array from the device. | |
virtual bool | GetIntensities (float *intensityArray) |
Gets the current intensity array from the device. | |
virtual bool | GetDistances (float *distanceArray) |
Gets the current distance array from the device. | |
virtual bool | UpdateCamera () |
calls update on the camera -> a new ToF-image is aquired | |
virtual void | SetInputFileName (std::string inputFileName) |
set input file name used by MESA player classes | |
itkGetMacro (CaptureWidth, unsigned int) | |
Access the resolution of the image in x direction. | |
itkGetMacro (CaptureHeight, unsigned int) | |
Access the resolution of the image in y direction. | |
Protected Member Functions | |
ToFCameraMESASR4000Controller () | |
~ToFCameraMESASR4000Controller () | |
![]() | |
ToFCameraMESAController () | |
~ToFCameraMESAController () | |
bool | ErrorText (int error) |
Method printing the current error message to the console and returning whether the previous command was successful. | |
Additional Inherited Members | |
![]() | |
char | m_MESAError [128] |
member holding the current error text | |
int | m_MESARes |
holds the current result message provided by MESA | |
int | m_PixelNumber |
holds the number of pixels contained in the image | |
int | m_NumberOfBytes |
holds the number of bytes contained in the image | |
unsigned int | m_CaptureWidth |
holds the width of the image in pixel | |
unsigned int | m_CaptureHeight |
holds the height of the image in pixel | |
int | m_NumImg |
holds the number of images the camera provided (distance, intensity, etc) | |
float | m_MaxRangeFactor |
holds the factor to calculate the real distance depends on the modulation frequency | |
bool | m_ConnectionCheck |
flag showing whether the camera is connected (true) or not (false) | |
std::string | m_InputFileName |
input file name used by MESA player classes | |
Interface to the Time-of-Flight (ToF) camera MESA Swissranger 4000.
Definition at line 30 of file mitkToFCameraMESASR4000Controller.h.
|
protected |
Definition at line 20 of file mitkToFCameraMESASR4000Controller.cpp.
|
protected |
Definition at line 50 of file mitkToFCameraMESASR4000Controller.cpp.
|
virtual |
Returns the currently set integration time.
Implements mitk::ToFCameraMESAController.
Definition at line 136 of file mitkToFCameraMESASR4000Controller.cpp.
|
virtual |
Returns the currently set modulation frequency.
Implements mitk::ToFCameraMESAController.
Definition at line 167 of file mitkToFCameraMESASR4000Controller.cpp.
mitk::ToFCameraMESASR4000Controller::itkCloneMacro | ( | Self | ) |
mitk::ToFCameraMESASR4000Controller::itkFactorylessNewMacro | ( | Self | ) |
mitk::ToFCameraMESASR4000Controller::mitkClassMacro | ( | ToFCameraMESASR4000Controller | , |
mitk::ToFCameraMESAController | ) |
|
virtual |
opens a connection to the ToF camera and initializes the hardware specific members
Implements mitk::ToFCameraMESAController.
Definition at line 54 of file mitkToFCameraMESASR4000Controller.cpp.
|
virtual |
Sets the acquire mode of the MESA SR4000 camera. The method sets some parameter supported by the MESA SR4000, see MESA API for more details.
anf | Turns on the 5x5 hardware adaptive neighborhood filter |
Definition at line 211 of file mitkToFCameraMESASR4000Controller.cpp.
|
virtual |
Sets the acquire mode of the MESA SR4000 camera. The method sets some parameter supported by the MESA SR4000, see MESA API for more details.
convGray | Converts the amplitude image by multiplying by the square of the distance, resulting in image more like a conventional camera |
Definition at line 187 of file mitkToFCameraMESASR4000Controller.cpp.
|
virtual |
Sets the acquire mode of the MESA SR4000 camera. The method sets some parameter supported by the MESA SR4000, see MESA API for more details.
fpn | turns on fix pattern noise correction this should always be enabled for good distance measurement |
Definition at line 175 of file mitkToFCameraMESASR4000Controller.cpp.
|
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.
integrationTime | integration time |
Implements mitk::ToFCameraMESAController.
Definition at line 128 of file mitkToFCameraMESASR4000Controller.cpp.
|
virtual |
Sets the acquire mode of the MESA SR4000 camera. The method sets some parameter supported by the MESA SR4000, see MESA API for more details.
median | turns on a 3x3 median filter |
Definition at line 199 of file mitkToFCameraMESASR4000Controller.cpp.
|
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.
modulationFrequency | modulation frequency |
Implements mitk::ToFCameraMESAController.
Definition at line 143 of file mitkToFCameraMESASR4000Controller.cpp.