12#ifndef mitkToFImageGrabber_h
13#define mitkToFImageGrabber_h
15#include <MitkToFHardwareExports.h>
16#include <mitkCommon.h>
21#include <itkObjectFactory.h>
48 virtual bool ConnectCamera();
52 virtual bool DisconnectCamera();
57 virtual void StartCamera();
61 virtual void StopCamera();
65 virtual bool IsCameraActive();
69 virtual bool IsCameraConnected();
85 int SetModulationFrequency(
int modulationFrequency);
90 int GetModulationFrequency();
96 int SetIntegrationTime(
int integrationTime);
101 int GetIntegrationTime();
106 int GetCaptureWidth();
111 int GetCaptureHeight();
116 int GetPixelNumber();
121 int GetRGBImageWidth();
126 int GetRGBImageHeight();
131 int GetRGBPixelNumber();
134 void SetBoolProperty(
const char* propertyKey,
bool boolValue );
136 void SetIntProperty(
const char* propertyKey,
int intValue );
138 void SetFloatProperty(
const char* propertyKey,
float floatValue );
140 void SetStringProperty(
const char* propertyKey,
const char* stringValue );
142 void SetProperty(
const char *propertyKey, BaseProperty* propertyValue );
144 bool GetBoolProperty(
const char* propertyKey);
146 int GetIntProperty(
const char* propertyKey);
148 float GetFloatProperty(
const char* propertyKey);
150 const char* GetStringProperty(
const char* propertyKey);
152 BaseProperty* GetProperty(
const char *propertyKey);
160 void OnToFCameraDeviceModified();
165 virtual void CleanUpImageArrays();
169 virtual void AllocateImageArrays();
174 void InitializeImages();
202 void GenerateData()
override;
Virtual interface and base class for all Time-of-Flight devices.
Image source providing ToF images. Interface for filters provided in ToFProcessing module.
float * m_AmplitudeArray
member holding the current amplitude array
unsigned char * m_RgbDataArray
member holding the current rgb data array
int m_ImageSequence
counter for currently acquired images
mitkClassMacro(ToFImageGrabber, ImageSource)
int m_RGBPixelNumber
Number of pixels in the RGB image.
int m_SourceDataSize
size of the source data in bytes
itkFactorylessNewMacro(Self)
unsigned long m_DeviceObserverTag
tag of the observer for the ToFCameraDevice
void ShowDebugImage(float *distances)
float * m_DistanceArray
member holding the current distance array
float * m_IntensityArray
member holding the current intensity array
int m_CaptureHeight
Height of the captured ToF image.
int m_CaptureWidth
Width of the captured ToF image.
int m_RGBImageHeight
Height of the captured RGB image.
ToFCameraDevice::Pointer m_ToFCameraDevice
Device allowing access to ToF image data.
int m_RGBImageWidth
Width of the captured RGB image.
char * m_SourceDataArray
member holding the current source data array
int m_PixelNumber
Number of pixels in the image.
Image source providing ToF images. Interface for filters provided in ToFProcessing module.