Medical Imaging Interaction Toolkit
2023.12.00
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
12 #ifndef mitkKinectV2Device_h
13 #define mitkKinectV2Device_h
16 #include <MitkKinectV2Exports.h>
20 #include <itkObject.h>
21 #include <itkObjectFactory.h>
22 #include <itkMultiThreader.h>
23 #include <itkFastMutexLock.h>
25 #include <vtkSmartPointer.h>
26 #include <vtkPolyData.h>
46 itkFactorylessNewMacro(Self);
53 itkSetMacro(PrintFrameRate,
bool);
59 virtual bool OnConnectCamera();
63 virtual bool DisconnectCamera();
69 virtual void StartCamera();
73 virtual void StopCamera();
78 virtual void UpdateCamera();
82 virtual bool IsCameraActive();
89 virtual void GetAmplitudes(
float* amplitudeArray,
int& imageSequence);
95 virtual void GetIntensities(
float* intensityArray,
int& imageSequence);
101 virtual void GetDistances(
float* distanceArray,
int& imageSequence);
112 virtual void GetAllImages(
float* distanceArray,
float* amplitudeArray,
float* intensityArray,
char* sourceDataArray,
113 int requiredImageSequence,
int& capturedImageSequence,
unsigned char* rgbDataArray=
nullptr);
117 KinectV2Controller::Pointer GetController();
122 int GetRGBCaptureWidth();
126 int GetRGBCaptureHeight();
137 static ITK_THREAD_RETURN_TYPE Acquire(
void* pInfoStruct);
float ** m_AmplitudeDataBuffer
buffer holding the last amplitude images
vtkSmartPointer< vtkPolyData > m_PolyData
Surface generated via the Kinect V2 SDK with default/unknown calibration.
Interface for all representations of Microsoft Kinect V2 devices. Kinect2Device internally holds an i...
size_t m_DepthBufferSize
Size of depth buffer (i.e. memory size of depth and infrared image)
unsigned char ** m_RGBDataBuffer
buffer holding the last RGB image
float ** m_DistanceDataBuffer
buffer holding the last distance images
KinectV2Controller::Pointer m_Controller
corresponding CameraController
Find image slices visible on a given plane.
static bool m_PrintFrameRate
prints the framerate to the console every 100 frames, deactivated by default
#define mitkClassMacro(className, SuperClassName)
Virtual interface and base class for all Time-of-Flight devices.
size_t m_RGBBufferSize
Size of RGB buffer (i.e. memory size of RGB image)