MITK-IGT
IGT Extension of MITK
Loading...
Searching...
No Matches
mitkKinectV2Controller.h
Go to the documentation of this file.
1/*============================================================================
2
3The Medical Imaging Interaction Toolkit (MITK)
4
5Copyright (c) German Cancer Research Center (DKFZ)
6All rights reserved.
7
8Use of this source code is governed by a 3-clause BSD license that can be
9found in the LICENSE file.
10
11============================================================================*/
12#ifndef mitkKinectV2Controller_h
13#define mitkKinectV2Controller_h
14
15#include <MitkKinectV2Exports.h>
16#include <mitkCommon.h>
17#include "mitkToFConfig.h"
18
19#include <itkObject.h>
20#include <itkObjectFactory.h>
21
22#include <vtkSmartPointer.h>
23#include <vtkPolyData.h>
24
25namespace mitk
26{
32 class MITKKINECTV2_EXPORT KinectV2Controller : public itk::Object
33 {
34 public:
35
37
39
41 int GetRGBCaptureWidth() const;
42 int GetRGBCaptureHeight() const;
43 int GetDepthCaptureWidth() const;
44 int GetDepthCaptureHeight() const;
45
51 bool InitializeMultiFrameReader();
52
57 virtual bool OpenCameraConnection();
61 virtual bool CloseCameraConnection();
66 virtual bool UpdateCamera();
71 void GetDistances(float* distances);
72 void GetAmplitudes(float* amplitudes);
73 void GetIntensities(float* intensities);
74
75 vtkSmartPointer<vtkPolyData> GetVtkPolyData();
76
77 void SetGenerateTriangularMesh(bool flag);
78 void SetTriangulationThreshold(double triangulationThreshold);
79
84 void GetRgb(unsigned char* rgb);
91 void GetAllData(float* distances, float* amplitudes, unsigned char* rgb);
92
93 protected:
94
96
98
99 private:
102
103 };
104} //END mitk namespace
105#endif
Interface to the Kinect 2 camera. Currently, the Microsoft SDK is used.
mitkClassMacroItkParent(KinectV2Controller, itk::Object)
void GetIntensities(float *intensities)
itkCloneMacro(Self) int GetRGBCaptureWidth() const
IGT Exceptions.