Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Interface to the Kinect 2 camera. Currently, the Microsoft SDK is used. More...
#include <mitkKinectV2Controller.h>
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 () | |
Interface to the Kinect 2 camera. Currently, the Microsoft SDK is used.
Definition at line 36 of file mitkKinectV2Controller.h.
|
protected |
Definition at line 108 of file mitkKinectV2Controller.cpp.
|
protected |
Definition at line 112 of file mitkKinectV2Controller.cpp.
References MITK_INFO.
Pointer mitk::KinectV2Controller::Clone | ( | ) | const |
|
virtual |
closes the connection to the camera
Definition at line 176 of file mitkKinectV2Controller.cpp.
References MITK_INFO, and SafeRelease().
void mitk::KinectV2Controller::GetAllData | ( | float * | distances, |
float * | amplitudes, | ||
unsigned char * | rgb | ||
) |
convenience method for faster access to distance and rgb data
distances | pointer to memory location where distances should be stored |
rgb | pointer to memory location where rgb information should be stored |
Definition at line 368 of file mitkKinectV2Controller.cpp.
References mitk::eps, mitk::Equal(), InitializeMultiFrameReader(), MITK_DEBUG, MITK_ERROR, mitk::New(), and SafeRelease().
void mitk::KinectV2Controller::GetAmplitudes | ( | float * | amplitudes | ) |
Definition at line 660 of file mitkKinectV2Controller.cpp.
References InitializeMultiFrameReader(), MITK_DEBUG, MITK_ERROR, and SafeRelease().
int mitk::KinectV2Controller::GetDepthCaptureHeight | ( | ) | const |
Definition at line 742 of file mitkKinectV2Controller.cpp.
int mitk::KinectV2Controller::GetDepthCaptureWidth | ( | ) | const |
Definition at line 737 of file mitkKinectV2Controller.cpp.
void mitk::KinectV2Controller::GetDistances | ( | float * | distances | ) |
acquire new distance data from the Kinect camera
distances | pointer to memory location where distances should be stored |
Definition at line 201 of file mitkKinectV2Controller.cpp.
References InitializeMultiFrameReader(), MITK_DEBUG, MITK_ERROR, mitk::New(), and SafeRelease().
void mitk::KinectV2Controller::GetIntensities | ( | float * | intensities | ) |
void mitk::KinectV2Controller::GetRgb | ( | unsigned char * | rgb | ) |
acquire new rgb data from the Kinect camera
rgb | pointer to memory location where rgb information should be stored |
Definition at line 299 of file mitkKinectV2Controller.cpp.
References InitializeMultiFrameReader(), MITK_DEBUG, MITK_ERROR, and SafeRelease().
int mitk::KinectV2Controller::GetRGBCaptureHeight | ( | ) | const |
Definition at line 732 of file mitkKinectV2Controller.cpp.
int mitk::KinectV2Controller::GetRGBCaptureWidth | ( | ) | const |
Definition at line 727 of file mitkKinectV2Controller.cpp.
vtkSmartPointer< vtkPolyData > mitk::KinectV2Controller::GetVtkPolyData | ( | ) |
Definition at line 747 of file mitkKinectV2Controller.cpp.
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.
Definition at line 154 of file mitkKinectV2Controller.cpp.
References MITK_INFO.
Referenced by GetAllData(), GetAmplitudes(), GetDistances(), and GetRgb().
mitk::KinectV2Controller::mitkClassMacroItkParent | ( | KinectV2Controller | , |
itk::Object | |||
) |
|
static |
Referenced by mitk::KinectV2Device::KinectV2Device().
|
virtual |
opens a connection to the Kinect V2 camera.
mitkException | In case of no connection, an exception is thrown! |
Definition at line 118 of file mitkKinectV2Controller.cpp.
void mitk::KinectV2Controller::SetGenerateTriangularMesh | ( | bool | flag | ) |
Definition at line 752 of file mitkKinectV2Controller.cpp.
void mitk::KinectV2Controller::SetTriangulationThreshold | ( | double | triangulationThreshold | ) |
Definition at line 757 of file mitkKinectV2Controller.cpp.
|
virtual |
updates the camera. The update function of the hardware interface is called only when new data is available
mitkException | In case of no connection, an exception is thrown! |
Definition at line 193 of file mitkKinectV2Controller.cpp.