Medical Imaging Interaction Toolkit  2023.12.00
Medical Imaging Interaction Toolkit
mitkKinectV2Controller.h
Go to the documentation of this file.
1 /*============================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found 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 
25 namespace mitk
26 {
32  class MITKKINECTV2_EXPORT KinectV2Controller : public itk::Object
33  {
34  public:
35 
37 
38  itkFactorylessNewMacro(Self);
39 
40  itkCloneMacro(Self)
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:
100  class KinectV2ControllerPrivate;
101  KinectV2ControllerPrivate *d;
102 
103  };
104 } //END mitk namespace
105 #endif
mitk::KinectV2Controller
Interface to the Kinect 2 camera. Currently, the Microsoft SDK is used.
Definition: mitkKinectV2Controller.h:32
vtkSmartPointer< vtkPolyData >
mitkToFConfig.h
mitkClassMacroItkParent
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:45
mitk
Find image slices visible on a given plane.
Definition: RenderingTests.dox:1
mitkCommon.h