MITK-IGT
IGT Extension of MITK
|
Controller for playing ToF images saved in NRRD format. More...
#include <mitkToFCameraMITKPlayerController.h>
Public Types | |
enum | ToFImageType { ToFImageType3D , ToFImageType2DPlusT } |
Public Member Functions | |
mitkClassMacroItkParent (ToFCameraMITKPlayerController, itk::Object) | |
itkFactorylessNewMacro (Self) | |
itkCloneMacro (Self) | |
virtual bool | OpenCameraConnection () |
opens a connection to the ToF camera | |
virtual bool | CloseCameraConnection () |
closes the connection to the camera | |
virtual void | GetAmplitudes (float *amplitudeArray) |
gets the current amplitude frame from the input These values can be used to determine the quality of the distance values. The higher the amplitude value, the higher the accuracy of the according distance value | |
virtual void | GetIntensities (float *intensityArray) |
gets the current intensity frame from the input as a greyscale image | |
virtual void | GetDistances (float *distanceArray) |
gets the current distance frame from the inpug measuring the distance between the camera and the different object points in millimeters | |
virtual void | GetRgb (unsigned char *rgbArray) |
gets the current RGB frame from the input if available | |
virtual void | UpdateCamera () |
updates the current image frames from input | |
virtual void | SetInputFileName (std::string inputFileName) |
itkGetMacro (PixelNumber, int) | |
itkGetMacro (RGBPixelNumber, int) | |
itkGetMacro (CaptureWidth, int) | |
itkGetMacro (CaptureHeight, int) | |
itkGetMacro (RGBCaptureWidth, int) | |
itkGetMacro (RGBCaptureHeight, int) | |
itkGetMacro (DistanceImageFileName, std::string) | |
itkGetMacro (AmplitudeImageFileName, std::string) | |
itkGetMacro (IntensityImageFileName, std::string) | |
itkGetMacro (RGBImageFileName, std::string) | |
itkSetMacro (DistanceImageFileName, std::string) | |
itkSetMacro (AmplitudeImageFileName, std::string) | |
itkSetMacro (IntensityImageFileName, std::string) | |
itkSetMacro (RGBImageFileName, std::string) | |
Protected Member Functions | |
ToFCameraMITKPlayerController () | |
~ToFCameraMITKPlayerController () override | |
Protected Attributes | |
int | m_PixelNumber |
holds the number of pixels contained in the image | |
int | m_RGBPixelNumber |
same for RGB image | |
int | m_NumberOfBytes |
holds the number of bytes contained in the image | |
int | m_NumberOfRGBBytes |
same for RGB image | |
int | m_CaptureWidth |
holds the width of the image | |
int | m_CaptureHeight |
holds the height of the image | |
int | m_RGBCaptureWidth |
same for RGB image which can be different then depth etc. | |
int | m_RGBCaptureHeight |
same for RGB image which can be different then depth etc. | |
bool | m_ConnectionCheck |
flag showing whether the camera is connected (true) or not (false) | |
std::string | m_InputFileName |
ToFImageType | m_ToFImageType |
type of the ToF image to be played: 3D Volume (ToFImageType3D), temporal 2D image stack (ToFImageType2DPlusT) | |
Image::Pointer | m_DistanceImage |
Image::Pointer | m_AmplitudeImage |
Image::Pointer | m_IntensityImage |
Image::Pointer | m_RGBImage |
std::vector< bool > | m_ImageStatus |
FILE * | m_DistanceInfile |
file holding the distance data | |
FILE * | m_AmplitudeInfile |
file holding the amplitude data | |
FILE * | m_IntensityInfile |
file holding the intensity data | |
FILE * | m_RGBInfile |
file holding the rgb data | |
float * | m_IntensityArray |
member holding the current intensity frame | |
float * | m_DistanceArray |
member holding the current distance frame | |
float * | m_AmplitudeArray |
member holding the current amplitude frame | |
unsigned char * | m_RGBArray |
member holding the current rgb frame | |
std::string | m_DistanceImageFileName |
file name of the distance image to be played | |
std::string | m_AmplitudeImageFileName |
file name of the amplitude image to be played | |
std::string | m_IntensityImageFileName |
file name of the intensity image to be played | |
std::string | m_RGBImageFileName |
file name of the rgb image to be played | |
long | m_PixelStartInFile |
int | m_CurrentFrame |
int | m_NumOfFrames |
Controller for playing ToF images saved in NRRD format.
Definition at line 31 of file mitkToFCameraMITKPlayerController.h.
Enumerator | |
---|---|
ToFImageType3D | |
ToFImageType2DPlusT |
Definition at line 90 of file mitkToFCameraMITKPlayerController.h.
|
protected |
Definition at line 22 of file mitkToFCameraMITKPlayerController.cpp.
|
overrideprotected |
Definition at line 57 of file mitkToFCameraMITKPlayerController.cpp.
|
virtual |
closes the connection to the camera
Definition at line 246 of file mitkToFCameraMITKPlayerController.cpp.
|
virtual |
gets the current amplitude frame from the input These values can be used to determine the quality of the distance values. The higher the amplitude value, the higher the accuracy of the according distance value
Definition at line 307 of file mitkToFCameraMITKPlayerController.cpp.
|
virtual |
gets the current distance frame from the inpug measuring the distance between the camera and the different object points in millimeters
Definition at line 317 of file mitkToFCameraMITKPlayerController.cpp.
|
virtual |
gets the current intensity frame from the input as a greyscale image
Definition at line 312 of file mitkToFCameraMITKPlayerController.cpp.
|
virtual |
gets the current RGB frame from the input if available
Definition at line 322 of file mitkToFCameraMITKPlayerController.cpp.
mitk::ToFCameraMITKPlayerController::itkCloneMacro | ( | Self | ) |
mitk::ToFCameraMITKPlayerController::itkFactorylessNewMacro | ( | Self | ) |
mitk::ToFCameraMITKPlayerController::itkGetMacro | ( | AmplitudeImageFileName | , |
std::string | ) |
mitk::ToFCameraMITKPlayerController::itkGetMacro | ( | CaptureHeight | , |
int | ) |
mitk::ToFCameraMITKPlayerController::itkGetMacro | ( | CaptureWidth | , |
int | ) |
mitk::ToFCameraMITKPlayerController::itkGetMacro | ( | DistanceImageFileName | , |
std::string | ) |
mitk::ToFCameraMITKPlayerController::itkGetMacro | ( | IntensityImageFileName | , |
std::string | ) |
mitk::ToFCameraMITKPlayerController::itkGetMacro | ( | PixelNumber | , |
int | ) |
mitk::ToFCameraMITKPlayerController::itkGetMacro | ( | RGBCaptureHeight | , |
int | ) |
mitk::ToFCameraMITKPlayerController::itkGetMacro | ( | RGBCaptureWidth | , |
int | ) |
mitk::ToFCameraMITKPlayerController::itkGetMacro | ( | RGBImageFileName | , |
std::string | ) |
mitk::ToFCameraMITKPlayerController::itkGetMacro | ( | RGBPixelNumber | , |
int | ) |
mitk::ToFCameraMITKPlayerController::itkSetMacro | ( | AmplitudeImageFileName | , |
std::string | ) |
mitk::ToFCameraMITKPlayerController::itkSetMacro | ( | DistanceImageFileName | , |
std::string | ) |
mitk::ToFCameraMITKPlayerController::itkSetMacro | ( | IntensityImageFileName | , |
std::string | ) |
mitk::ToFCameraMITKPlayerController::itkSetMacro | ( | RGBImageFileName | , |
std::string | ) |
mitk::ToFCameraMITKPlayerController::mitkClassMacroItkParent | ( | ToFCameraMITKPlayerController | , |
itk::Object | ) |
|
virtual |
opens a connection to the ToF camera
Definition at line 100 of file mitkToFCameraMITKPlayerController.cpp.
|
virtual |
Definition at line 327 of file mitkToFCameraMITKPlayerController.cpp.
|
virtual |
updates the current image frames from input
Definition at line 257 of file mitkToFCameraMITKPlayerController.cpp.
|
protected |
member holding the current amplitude frame
Definition at line 124 of file mitkToFCameraMITKPlayerController.h.
|
protected |
Definition at line 112 of file mitkToFCameraMITKPlayerController.h.
|
protected |
file name of the amplitude image to be played
Definition at line 128 of file mitkToFCameraMITKPlayerController.h.
|
protected |
file holding the amplitude data
Definition at line 118 of file mitkToFCameraMITKPlayerController.h.
|
protected |
holds the height of the image
Definition at line 103 of file mitkToFCameraMITKPlayerController.h.
|
protected |
holds the width of the image
Definition at line 102 of file mitkToFCameraMITKPlayerController.h.
|
protected |
flag showing whether the camera is connected (true) or not (false)
Definition at line 106 of file mitkToFCameraMITKPlayerController.h.
|
protected |
Definition at line 133 of file mitkToFCameraMITKPlayerController.h.
|
protected |
member holding the current distance frame
Definition at line 123 of file mitkToFCameraMITKPlayerController.h.
|
protected |
Definition at line 111 of file mitkToFCameraMITKPlayerController.h.
|
protected |
file name of the distance image to be played
Definition at line 127 of file mitkToFCameraMITKPlayerController.h.
|
protected |
file holding the distance data
Definition at line 117 of file mitkToFCameraMITKPlayerController.h.
|
protected |
Definition at line 115 of file mitkToFCameraMITKPlayerController.h.
|
protected |
Definition at line 108 of file mitkToFCameraMITKPlayerController.h.
|
protected |
member holding the current intensity frame
Definition at line 122 of file mitkToFCameraMITKPlayerController.h.
|
protected |
Definition at line 113 of file mitkToFCameraMITKPlayerController.h.
|
protected |
file name of the intensity image to be played
Definition at line 129 of file mitkToFCameraMITKPlayerController.h.
|
protected |
file holding the intensity data
Definition at line 119 of file mitkToFCameraMITKPlayerController.h.
|
protected |
holds the number of bytes contained in the image
Definition at line 100 of file mitkToFCameraMITKPlayerController.h.
|
protected |
same for RGB image
Definition at line 101 of file mitkToFCameraMITKPlayerController.h.
|
protected |
Definition at line 134 of file mitkToFCameraMITKPlayerController.h.
|
protected |
holds the number of pixels contained in the image
Definition at line 98 of file mitkToFCameraMITKPlayerController.h.
|
protected |
Definition at line 132 of file mitkToFCameraMITKPlayerController.h.
|
protected |
member holding the current rgb frame
Definition at line 125 of file mitkToFCameraMITKPlayerController.h.
|
protected |
same for RGB image which can be different then depth etc.
Definition at line 105 of file mitkToFCameraMITKPlayerController.h.
|
protected |
same for RGB image which can be different then depth etc.
Definition at line 104 of file mitkToFCameraMITKPlayerController.h.
|
protected |
Definition at line 114 of file mitkToFCameraMITKPlayerController.h.
|
protected |
file name of the rgb image to be played
Definition at line 130 of file mitkToFCameraMITKPlayerController.h.
|
protected |
file holding the rgb data
Definition at line 120 of file mitkToFCameraMITKPlayerController.h.
|
protected |
same for RGB image
Definition at line 99 of file mitkToFCameraMITKPlayerController.h.
|
protected |
type of the ToF image to be played: 3D Volume (ToFImageType3D), temporal 2D image stack (ToFImageType2DPlusT)
Definition at line 109 of file mitkToFCameraMITKPlayerController.h.