Medical Imaging Interaction Toolkit  2022.04.99-01b95b17
Medical Imaging Interaction Toolkit
mitk::KinectV2Controller Class Reference

Interface to the Kinect 2 camera. Currently, the Microsoft SDK is used. More...

#include <mitkKinectV2Controller.h>

Inheritance diagram for mitk::KinectV2Controller:
Collaboration diagram for mitk::KinectV2Controller:

Public Member Functions

 mitkClassMacroItkParent (KinectV2Controller, itk::Object)
 
Pointer Clone () const
 
int GetRGBCaptureWidth () const
 
int GetRGBCaptureHeight () const
 
int GetDepthCaptureWidth () const
 
int GetDepthCaptureHeight () const
 
bool InitializeMultiFrameReader ()
 Setup MultiFrameReader of Kinect V2. This reader can acquire different types of data. Here it is used to acquire depth, RGB and infrared images. More...
 
virtual bool OpenCameraConnection ()
 opens a connection to the Kinect V2 camera. More...
 
virtual bool CloseCameraConnection ()
 closes the connection to the camera More...
 
virtual bool UpdateCamera ()
 updates the camera. The update function of the hardware interface is called only when new data is available More...
 
void GetDistances (float *distances)
 acquire new distance data from the Kinect camera More...
 
void GetAmplitudes (float *amplitudes)
 
void GetIntensities (float *intensities)
 
vtkSmartPointer< vtkPolyData > GetVtkPolyData ()
 
void SetGenerateTriangularMesh (bool flag)
 
void SetTriangulationThreshold (double triangulationThreshold)
 
void GetRgb (unsigned char *rgb)
 acquire new rgb data from the Kinect camera More...
 
void GetAllData (float *distances, float *amplitudes, unsigned char *rgb)
 convenience method for faster access to distance and rgb data More...
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 KinectV2Controller ()
 
 ~KinectV2Controller ()
 

Detailed Description

Interface to the Kinect 2 camera. Currently, the Microsoft SDK is used.

Definition at line 32 of file mitkKinectV2Controller.h.

Constructor & Destructor Documentation

◆ KinectV2Controller()

mitk::KinectV2Controller::KinectV2Controller ( )
protected

◆ ~KinectV2Controller()

mitk::KinectV2Controller::~KinectV2Controller ( )
protected

Member Function Documentation

◆ Clone()

Pointer mitk::KinectV2Controller::Clone ( ) const

◆ CloseCameraConnection()

virtual bool mitk::KinectV2Controller::CloseCameraConnection ( )
virtual

closes the connection to the camera

◆ GetAllData()

void mitk::KinectV2Controller::GetAllData ( float *  distances,
float *  amplitudes,
unsigned char *  rgb 
)

convenience method for faster access to distance and rgb data

Parameters
distancespointer to memory location where distances should be stored
amplitudes
rgbpointer to memory location where rgb information should be stored

◆ GetAmplitudes()

void mitk::KinectV2Controller::GetAmplitudes ( float *  amplitudes)

◆ GetDepthCaptureHeight()

int mitk::KinectV2Controller::GetDepthCaptureHeight ( ) const

◆ GetDepthCaptureWidth()

int mitk::KinectV2Controller::GetDepthCaptureWidth ( ) const

◆ GetDistances()

void mitk::KinectV2Controller::GetDistances ( float *  distances)

acquire new distance data from the Kinect camera

Parameters
distancespointer to memory location where distances should be stored

◆ GetIntensities()

void mitk::KinectV2Controller::GetIntensities ( float *  intensities)

◆ GetRgb()

void mitk::KinectV2Controller::GetRgb ( unsigned char *  rgb)

acquire new rgb data from the Kinect camera

Parameters
rgbpointer to memory location where rgb information should be stored

◆ GetRGBCaptureHeight()

int mitk::KinectV2Controller::GetRGBCaptureHeight ( ) const

◆ GetRGBCaptureWidth()

int mitk::KinectV2Controller::GetRGBCaptureWidth ( ) const

◆ GetVtkPolyData()

vtkSmartPointer<vtkPolyData> mitk::KinectV2Controller::GetVtkPolyData ( )

◆ InitializeMultiFrameReader()

bool mitk::KinectV2Controller::InitializeMultiFrameReader ( )

Setup MultiFrameReader of Kinect V2. This reader can acquire different types of data. Here it is used to acquire depth, RGB and infrared images.

◆ mitkClassMacroItkParent()

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

◆ New()

static Pointer mitk::KinectV2Controller::New ( )
static

◆ OpenCameraConnection()

virtual bool mitk::KinectV2Controller::OpenCameraConnection ( )
virtual

opens a connection to the Kinect V2 camera.

Exceptions
mitkExceptionIn case of no connection, an exception is thrown!

◆ SetGenerateTriangularMesh()

void mitk::KinectV2Controller::SetGenerateTriangularMesh ( bool  flag)

◆ SetTriangulationThreshold()

void mitk::KinectV2Controller::SetTriangulationThreshold ( double  triangulationThreshold)

◆ UpdateCamera()

virtual bool mitk::KinectV2Controller::UpdateCamera ( )
virtual

updates the camera. The update function of the hardware interface is called only when new data is available

Exceptions
mitkExceptionIn case of no connection, an exception is thrown!

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