Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
mitk::ToFCameraMITKPlayerController Class Reference

Controller for playing ToF images saved in NRRD format. More...

#include <mitkToFCameraMITKPlayerController.h>

Inheritance diagram for mitk::ToFCameraMITKPlayerController:
Collaboration diagram for mitk::ToFCameraMITKPlayerController:

Public Types

enum  ToFImageType { ToFImageType3D, ToFImageType2DPlusT }
 

Public Member Functions

 mitkClassMacroItkParent (ToFCameraMITKPlayerController, itk::Object)
 
Pointer Clone () const
 
virtual bool OpenCameraConnection ()
 opens a connection to the ToF camera More...
 
virtual bool CloseCameraConnection ()
 closes the connection to the camera More...
 
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 More...
 
virtual void GetIntensities (float *intensityArray)
 gets the current intensity frame from the input as a greyscale image More...
 
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 More...
 
virtual void GetRgb (unsigned char *rgbArray)
 gets the current RGB frame from the input if available More...
 
virtual void UpdateCamera ()
 updates the current image frames from input More...
 
virtual void SetInputFileName (std::string inputFileName)
 
virtual int GetPixelNumber ()
 
virtual int GetRGBPixelNumber ()
 
virtual int GetCaptureWidth ()
 
virtual int GetCaptureHeight ()
 
virtual int GetRGBCaptureWidth ()
 
virtual int GetRGBCaptureHeight ()
 
virtual std::string GetDistanceImageFileName ()
 
virtual std::string GetAmplitudeImageFileName ()
 
virtual std::string GetIntensityImageFileName ()
 
virtual std::string GetRGBImageFileName ()
 
virtual void SetDistanceImageFileName (std::string _arg)
 
virtual void SetAmplitudeImageFileName (std::string _arg)
 
virtual void SetIntensityImageFileName (std::string _arg)
 
virtual void SetRGBImageFileName (std::string _arg)
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 ToFCameraMITKPlayerController ()
 
 ~ToFCameraMITKPlayerController () override
 

Protected Attributes

int m_PixelNumber
 holds the number of pixels contained in the image More...
 
int m_RGBPixelNumber
 same for RGB image More...
 
int m_NumberOfBytes
 holds the number of bytes contained in the image More...
 
int m_NumberOfRGBBytes
 same for RGB image More...
 
int m_CaptureWidth
 holds the width of the image More...
 
int m_CaptureHeight
 holds the height of the image More...
 
int m_RGBCaptureWidth
 same for RGB image which can be different then depth etc. More...
 
int m_RGBCaptureHeight
 same for RGB image which can be different then depth etc. More...
 
bool m_ConnectionCheck
 flag showing whether the camera is connected (true) or not (false) More...
 
std::string m_InputFileName
 
ToFImageType m_ToFImageType
 type of the ToF image to be played: 3D Volume (ToFImageType3D), temporal 2D image stack (ToFImageType2DPlusT) More...
 
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 More...
 
FILE * m_AmplitudeInfile
 file holding the amplitude data More...
 
FILE * m_IntensityInfile
 file holding the intensity data More...
 
FILE * m_RGBInfile
 file holding the rgb data More...
 
float * m_IntensityArray
 member holding the current intensity frame More...
 
float * m_DistanceArray
 member holding the current distance frame More...
 
float * m_AmplitudeArray
 member holding the current amplitude frame More...
 
unsigned char * m_RGBArray
 member holding the current rgb frame More...
 
std::string m_DistanceImageFileName
 file name of the distance image to be played More...
 
std::string m_AmplitudeImageFileName
 file name of the amplitude image to be played More...
 
std::string m_IntensityImageFileName
 file name of the intensity image to be played More...
 
std::string m_RGBImageFileName
 file name of the rgb image to be played More...
 
long m_PixelStartInFile
 
int m_CurrentFrame
 
int m_NumOfFrames
 

Detailed Description

Controller for playing ToF images saved in NRRD format.

Definition at line 31 of file mitkToFCameraMITKPlayerController.h.

Member Enumeration Documentation

◆ ToFImageType

Enumerator
ToFImageType3D 
ToFImageType2DPlusT 

Definition at line 90 of file mitkToFCameraMITKPlayerController.h.

Constructor & Destructor Documentation

◆ ToFCameraMITKPlayerController()

mitk::ToFCameraMITKPlayerController::ToFCameraMITKPlayerController ( )
protected

◆ ~ToFCameraMITKPlayerController()

mitk::ToFCameraMITKPlayerController::~ToFCameraMITKPlayerController ( )
overrideprotected

Member Function Documentation

◆ Clone()

Pointer mitk::ToFCameraMITKPlayerController::Clone ( ) const

◆ CloseCameraConnection()

virtual bool mitk::ToFCameraMITKPlayerController::CloseCameraConnection ( )
virtual

closes the connection to the camera

Returns
Returns 'true' if connection could be closed (i.e. only if a connection was established before) and 'false' otherwise

◆ GetAmplitudeImageFileName()

virtual std::string mitk::ToFCameraMITKPlayerController::GetAmplitudeImageFileName ( )
virtual

◆ GetAmplitudes()

virtual void mitk::ToFCameraMITKPlayerController::GetAmplitudes ( float *  amplitudeArray)
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

◆ GetCaptureHeight()

virtual int mitk::ToFCameraMITKPlayerController::GetCaptureHeight ( )
virtual

◆ GetCaptureWidth()

virtual int mitk::ToFCameraMITKPlayerController::GetCaptureWidth ( )
virtual

◆ GetDistanceImageFileName()

virtual std::string mitk::ToFCameraMITKPlayerController::GetDistanceImageFileName ( )
virtual

◆ GetDistances()

virtual void mitk::ToFCameraMITKPlayerController::GetDistances ( float *  distanceArray)
virtual

gets the current distance frame from the inpug measuring the distance between the camera and the different object points in millimeters

◆ GetIntensities()

virtual void mitk::ToFCameraMITKPlayerController::GetIntensities ( float *  intensityArray)
virtual

gets the current intensity frame from the input as a greyscale image

◆ GetIntensityImageFileName()

virtual std::string mitk::ToFCameraMITKPlayerController::GetIntensityImageFileName ( )
virtual

◆ GetPixelNumber()

virtual int mitk::ToFCameraMITKPlayerController::GetPixelNumber ( )
virtual

◆ GetRgb()

virtual void mitk::ToFCameraMITKPlayerController::GetRgb ( unsigned char *  rgbArray)
virtual

gets the current RGB frame from the input if available

◆ GetRGBCaptureHeight()

virtual int mitk::ToFCameraMITKPlayerController::GetRGBCaptureHeight ( )
virtual

◆ GetRGBCaptureWidth()

virtual int mitk::ToFCameraMITKPlayerController::GetRGBCaptureWidth ( )
virtual

◆ GetRGBImageFileName()

virtual std::string mitk::ToFCameraMITKPlayerController::GetRGBImageFileName ( )
virtual

◆ GetRGBPixelNumber()

virtual int mitk::ToFCameraMITKPlayerController::GetRGBPixelNumber ( )
virtual

◆ mitkClassMacroItkParent()

mitk::ToFCameraMITKPlayerController::mitkClassMacroItkParent ( ToFCameraMITKPlayerController  ,
itk::Object   
)

◆ New()

static Pointer mitk::ToFCameraMITKPlayerController::New ( )
static

◆ OpenCameraConnection()

virtual bool mitk::ToFCameraMITKPlayerController::OpenCameraConnection ( )
virtual

opens a connection to the ToF camera

Returns
Returns 'true' if connection could be established and 'false' otherwise

◆ SetAmplitudeImageFileName()

virtual void mitk::ToFCameraMITKPlayerController::SetAmplitudeImageFileName ( std::string  _arg)
virtual

◆ SetDistanceImageFileName()

virtual void mitk::ToFCameraMITKPlayerController::SetDistanceImageFileName ( std::string  _arg)
virtual

◆ SetInputFileName()

virtual void mitk::ToFCameraMITKPlayerController::SetInputFileName ( std::string  inputFileName)
virtual

◆ SetIntensityImageFileName()

virtual void mitk::ToFCameraMITKPlayerController::SetIntensityImageFileName ( std::string  _arg)
virtual

◆ SetRGBImageFileName()

virtual void mitk::ToFCameraMITKPlayerController::SetRGBImageFileName ( std::string  _arg)
virtual

◆ UpdateCamera()

virtual void mitk::ToFCameraMITKPlayerController::UpdateCamera ( )
virtual

updates the current image frames from input

Member Data Documentation

◆ m_AmplitudeArray

float* mitk::ToFCameraMITKPlayerController::m_AmplitudeArray
protected

member holding the current amplitude frame

Definition at line 124 of file mitkToFCameraMITKPlayerController.h.

◆ m_AmplitudeImage

Image::Pointer mitk::ToFCameraMITKPlayerController::m_AmplitudeImage
protected

Definition at line 112 of file mitkToFCameraMITKPlayerController.h.

◆ m_AmplitudeImageFileName

std::string mitk::ToFCameraMITKPlayerController::m_AmplitudeImageFileName
protected

file name of the amplitude image to be played

Definition at line 128 of file mitkToFCameraMITKPlayerController.h.

◆ m_AmplitudeInfile

FILE* mitk::ToFCameraMITKPlayerController::m_AmplitudeInfile
protected

file holding the amplitude data

Definition at line 118 of file mitkToFCameraMITKPlayerController.h.

◆ m_CaptureHeight

int mitk::ToFCameraMITKPlayerController::m_CaptureHeight
protected

holds the height of the image

Definition at line 103 of file mitkToFCameraMITKPlayerController.h.

◆ m_CaptureWidth

int mitk::ToFCameraMITKPlayerController::m_CaptureWidth
protected

holds the width of the image

Definition at line 102 of file mitkToFCameraMITKPlayerController.h.

◆ m_ConnectionCheck

bool mitk::ToFCameraMITKPlayerController::m_ConnectionCheck
protected

flag showing whether the camera is connected (true) or not (false)

Definition at line 106 of file mitkToFCameraMITKPlayerController.h.

◆ m_CurrentFrame

int mitk::ToFCameraMITKPlayerController::m_CurrentFrame
protected

Definition at line 133 of file mitkToFCameraMITKPlayerController.h.

◆ m_DistanceArray

float* mitk::ToFCameraMITKPlayerController::m_DistanceArray
protected

member holding the current distance frame

Definition at line 123 of file mitkToFCameraMITKPlayerController.h.

◆ m_DistanceImage

Image::Pointer mitk::ToFCameraMITKPlayerController::m_DistanceImage
protected

Definition at line 111 of file mitkToFCameraMITKPlayerController.h.

◆ m_DistanceImageFileName

std::string mitk::ToFCameraMITKPlayerController::m_DistanceImageFileName
protected

file name of the distance image to be played

Definition at line 127 of file mitkToFCameraMITKPlayerController.h.

◆ m_DistanceInfile

FILE* mitk::ToFCameraMITKPlayerController::m_DistanceInfile
protected

file holding the distance data

Definition at line 117 of file mitkToFCameraMITKPlayerController.h.

◆ m_ImageStatus

std::vector<bool> mitk::ToFCameraMITKPlayerController::m_ImageStatus
protected

Definition at line 115 of file mitkToFCameraMITKPlayerController.h.

◆ m_InputFileName

std::string mitk::ToFCameraMITKPlayerController::m_InputFileName
protected

Definition at line 108 of file mitkToFCameraMITKPlayerController.h.

◆ m_IntensityArray

float* mitk::ToFCameraMITKPlayerController::m_IntensityArray
protected

member holding the current intensity frame

Definition at line 122 of file mitkToFCameraMITKPlayerController.h.

◆ m_IntensityImage

Image::Pointer mitk::ToFCameraMITKPlayerController::m_IntensityImage
protected

Definition at line 113 of file mitkToFCameraMITKPlayerController.h.

◆ m_IntensityImageFileName

std::string mitk::ToFCameraMITKPlayerController::m_IntensityImageFileName
protected

file name of the intensity image to be played

Definition at line 129 of file mitkToFCameraMITKPlayerController.h.

◆ m_IntensityInfile

FILE* mitk::ToFCameraMITKPlayerController::m_IntensityInfile
protected

file holding the intensity data

Definition at line 119 of file mitkToFCameraMITKPlayerController.h.

◆ m_NumberOfBytes

int mitk::ToFCameraMITKPlayerController::m_NumberOfBytes
protected

holds the number of bytes contained in the image

Definition at line 100 of file mitkToFCameraMITKPlayerController.h.

◆ m_NumberOfRGBBytes

int mitk::ToFCameraMITKPlayerController::m_NumberOfRGBBytes
protected

same for RGB image

Definition at line 101 of file mitkToFCameraMITKPlayerController.h.

◆ m_NumOfFrames

int mitk::ToFCameraMITKPlayerController::m_NumOfFrames
protected

Definition at line 134 of file mitkToFCameraMITKPlayerController.h.

◆ m_PixelNumber

int mitk::ToFCameraMITKPlayerController::m_PixelNumber
protected

holds the number of pixels contained in the image

Definition at line 98 of file mitkToFCameraMITKPlayerController.h.

◆ m_PixelStartInFile

long mitk::ToFCameraMITKPlayerController::m_PixelStartInFile
protected

Definition at line 132 of file mitkToFCameraMITKPlayerController.h.

◆ m_RGBArray

unsigned char* mitk::ToFCameraMITKPlayerController::m_RGBArray
protected

member holding the current rgb frame

Definition at line 125 of file mitkToFCameraMITKPlayerController.h.

◆ m_RGBCaptureHeight

int mitk::ToFCameraMITKPlayerController::m_RGBCaptureHeight
protected

same for RGB image which can be different then depth etc.

Definition at line 105 of file mitkToFCameraMITKPlayerController.h.

◆ m_RGBCaptureWidth

int mitk::ToFCameraMITKPlayerController::m_RGBCaptureWidth
protected

same for RGB image which can be different then depth etc.

Definition at line 104 of file mitkToFCameraMITKPlayerController.h.

◆ m_RGBImage

Image::Pointer mitk::ToFCameraMITKPlayerController::m_RGBImage
protected

Definition at line 114 of file mitkToFCameraMITKPlayerController.h.

◆ m_RGBImageFileName

std::string mitk::ToFCameraMITKPlayerController::m_RGBImageFileName
protected

file name of the rgb image to be played

Definition at line 130 of file mitkToFCameraMITKPlayerController.h.

◆ m_RGBInfile

FILE* mitk::ToFCameraMITKPlayerController::m_RGBInfile
protected

file holding the rgb data

Definition at line 120 of file mitkToFCameraMITKPlayerController.h.

◆ m_RGBPixelNumber

int mitk::ToFCameraMITKPlayerController::m_RGBPixelNumber
protected

same for RGB image

Definition at line 99 of file mitkToFCameraMITKPlayerController.h.

◆ m_ToFImageType

ToFImageType mitk::ToFCameraMITKPlayerController::m_ToFImageType
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.


The documentation for this class was generated from the following file: