|
Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
Interface to the Time-of-Flight (ToF) camera MESA Swissranger 4000. More...
#include <mitkToFCameraMESASR4000Controller.h>


Public Member Functions | |
| mitkClassMacro (ToFCameraMESASR4000Controller, mitk::ToFCameraMESAController) | |
| Pointer | Clone () const |
| virtual bool | OpenCameraConnection () |
| opens a connection to the ToF camera and initializes the hardware specific members More... | |
| virtual int | GetModulationFrequency () |
| Returns the currently set modulation frequency. More... | |
| 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. More... | |
| virtual int | GetIntegrationTime () |
| Returns the currently set integration time. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
| 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. More... | |
Public Member Functions inherited from mitk::ToFCameraMESAController | |
| mitkClassMacroItkParent (ToFCameraMESAController, itk::Object) | |
| virtual bool | CloseCameraConnection () |
| closes the connection to the camera More... | |
| virtual bool | GetAmplitudes (float *amplitudeArray) |
| Gets the current amplitude array from the device. More... | |
| virtual bool | GetIntensities (float *intensityArray) |
| Gets the current intensity array from the device. More... | |
| virtual bool | GetDistances (float *distanceArray) |
| Gets the current distance array from the device. More... | |
| virtual bool | UpdateCamera () |
| calls update on the camera -> a new ToF-image is aquired More... | |
| virtual void | SetInputFileName (std::string inputFileName) |
| set input file name used by MESA player classes More... | |
| virtual unsigned int | GetCaptureWidth () |
| Access the resolution of the image in x direction. More... | |
| virtual unsigned int | GetCaptureHeight () |
| Access the resolution of the image in y direction. More... | |
Static Public Member Functions | |
| static Pointer | New () |
Protected Member Functions | |
| ToFCameraMESASR4000Controller () | |
| ~ToFCameraMESASR4000Controller () | |
Protected Member Functions inherited from mitk::ToFCameraMESAController | |
| ToFCameraMESAController () | |
| ~ToFCameraMESAController () | |
| bool | ErrorText (int error) |
| Method printing the current error message to the console and returning whether the previous command was successful. More... | |
Additional Inherited Members | |
Protected Attributes inherited from mitk::ToFCameraMESAController | |
| char | m_MESAError [128] |
| member holding the current error text More... | |
| int | m_MESARes |
| holds the current result message provided by MESA More... | |
| int | m_PixelNumber |
| holds the number of pixels contained in the image More... | |
| int | m_NumberOfBytes |
| holds the number of bytes contained in the image More... | |
| unsigned int | m_CaptureWidth |
| holds the width of the image in pixel More... | |
| unsigned int | m_CaptureHeight |
| holds the height of the image in pixel More... | |
| int | m_NumImg |
| holds the number of images the camera provided (distance, intensity, etc) More... | |
| float | m_MaxRangeFactor |
| holds the factor to calculate the real distance depends on the modulation frequency More... | |
| bool | m_ConnectionCheck |
| flag showing whether the camera is connected (true) or not (false) More... | |
| std::string | m_InputFileName |
| input file name used by MESA player classes More... | |
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.
| Pointer mitk::ToFCameraMESASR4000Controller::Clone | ( | ) | const |
|
virtual |
Returns the currently set integration time.
Implements mitk::ToFCameraMESAController.
Definition at line 136 of file mitkToFCameraMESASR4000Controller.cpp.
References m_MESAHandle.
|
virtual |
Returns the currently set modulation frequency.
Implements mitk::ToFCameraMESAController.
Definition at line 167 of file mitkToFCameraMESASR4000Controller.cpp.
References mitk::ToFCameraMESAController::m_MaxRangeFactor, and m_MESAHandle.
| mitk::ToFCameraMESASR4000Controller::mitkClassMacro | ( | ToFCameraMESASR4000Controller | , |
| mitk::ToFCameraMESAController | |||
| ) |
|
static |
Referenced by mitk::ToFCameraMESASR4000Device::ToFCameraMESASR4000Device().
|
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.
References mitk::ToFCameraMESAController::ErrorText(), mitk::ToFCameraMESAController::m_CaptureHeight, mitk::ToFCameraMESAController::m_CaptureWidth, mitk::ToFCameraMESAController::m_ConnectionCheck, mitk::ToFCameraMESAController::m_MaxRangeFactor, m_MESAHandle, mitk::ToFCameraMESAController::m_MESARes, mitk::ToFCameraMESAController::m_NumberOfBytes, mitk::ToFCameraMESAController::m_NumImg, mitk::ToFCameraMESAController::m_PixelNumber, and MITK_INFO.
|
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.
References m_MESAHandle, and mitk::ToFCameraMESAController::m_MESARes.
|
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.
References m_MESAHandle, and mitk::ToFCameraMESAController::m_MESARes.
|
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.
References m_MESAHandle, and mitk::ToFCameraMESAController::m_MESARes.
|
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.
References m_MESAHandle, mitk::ToFCameraMESAController::m_MESARes, and MITK_INFO.
|
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.
References m_MESAHandle, and mitk::ToFCameraMESAController::m_MESARes.
|
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.
References mitk::ToFCameraMESAController::m_MaxRangeFactor, m_MESAHandle, mitk::ToFCameraMESAController::m_MESARes, MITK_INFO, and MITK_WARN.