16 #ifndef __mitkToFImageGrabber_h
17 #define __mitkToFImageGrabber_h
19 #include <MitkToFHardwareExports.h>
24 #include <itkObject.h>
25 #include <itkObjectFactory.h>
44 itkFactorylessNewMacro(
Self)
47 void ShowDebugImage(
float* distances);
51 virtual bool ConnectCamera();
55 virtual bool DisconnectCamera();
60 virtual void StartCamera();
64 virtual void StopCamera();
68 virtual bool IsCameraActive();
72 virtual bool IsCameraConnected();
88 int SetModulationFrequency(
int modulationFrequency);
93 int GetModulationFrequency();
99 int SetIntegrationTime(
int integrationTime);
104 int GetIntegrationTime();
109 int GetCaptureWidth();
114 int GetCaptureHeight();
119 int GetPixelNumber();
124 int GetRGBImageWidth();
129 int GetRGBImageHeight();
134 int GetRGBPixelNumber();
137 void SetBoolProperty(
const char* propertyKey,
bool boolValue );
139 void SetIntProperty(
const char* propertyKey,
int intValue );
141 void SetFloatProperty(
const char* propertyKey,
float floatValue );
143 void SetStringProperty(
const char* propertyKey,
const char*
stringValue );
145 void SetProperty(
const char *propertyKey,
BaseProperty* propertyValue );
147 bool GetBoolProperty(
const char* propertyKey);
149 int GetIntProperty(
const char* propertyKey);
151 float GetFloatProperty(
const char* propertyKey);
153 const char* GetStringProperty(
const char* propertyKey);
163 void OnToFCameraDeviceModified();
168 virtual void CleanUpImageArrays();
172 virtual void AllocateImageArrays();
177 void InitializeImages();
205 void GenerateData()
override;
Superclass of all classes generating Images (instances of class Image) as output. ...
float * m_DistanceArray
member holding the current distance array
int m_RGBImageWidth
Width of the captured RGB image.
itk::SmartPointer< Self > Pointer
int m_ImageSequence
counter for currently acquired images
int m_RGBPixelNumber
Number of pixels in the RGB image.
int m_RGBImageHeight
Height of the captured RGB image.
Virtual interface and base class for all Time-of-Flight devices.
Superclass of all classes generating some kind of mitk::BaseData.
DataCollection - Class to facilitate loading/accessing structured data.
int m_CaptureWidth
Width of the captured ToF image.
float * m_IntensityArray
member holding the current intensity array
char * m_SourceDataArray
member holding the current source data array
Abstract base class for properties.
ToFCameraDevice::Pointer m_ToFCameraDevice
Device allowing access to ToF image data.
#define mitkClassMacro(className, SuperClassName)
Image source providing ToF images. Interface for filters provided in ToFProcessing module...
int m_SourceDataSize
size of the source data in bytes
Image source providing ToF images. Interface for filters provided in ToFProcessing module...
unsigned long m_DeviceObserverTag
tag of the observer for the ToFCameraDevice
unsigned char * m_RgbDataArray
member holding the current rgb data array
int m_PixelNumber
Number of pixels in the image.
float * m_AmplitudeArray
member holding the current amplitude array
int m_CaptureHeight
Height of the captured ToF image.