12#ifndef mitkToFImageRecorder_h
13#define mitkToFImageRecorder_h
15#include "MitkToFHardwareExports.h"
16#include <mitkCommon.h>
22#include <itkObjectFactory.h>
23#include <itkCommand.h>
118 void StartRecording();
122 void StopRecording();
126 void WaitForThreadBeingTerminated();
Virtual interface and base class for all Time-of-Flight devices.
Recorder class for ToF images.
char * m_SourceDataArray
array holding the source data
bool m_AmplitudeImageSelected
flag indicating if amplitude image should be recorded
int m_SourceDataSize
size of the source data provided by the device
itkGetMacro(RGBCaptureHeight, int)
itkSetMacro(IntensityImageFileName, std::string)
itkGetMacro(AmplitudeImageSelected, bool)
itkGetMacro(IntensityImageFileName, std::string)
itkGetMacro(RGBImageFileName, std::string)
int m_RGBCaptureHeight
height (y-dimension) of the images to record.
itkGetMacro(NumOfFrames, int)
int m_ImageSequence
number of images currently acquired
itkGetMacro(IntensityImageSelected, bool)
mitkClassMacroItkParent(ToFImageRecorder, itk::Object)
ToFImageWriter::ToFImageType m_ToFImageType
type of image to be recorded: ToFImageType3D (0) or ToFImageType2DPlusT (1)
itkSetMacro(RGBImageFileName, std::string)
itkSetMacro(NumOfFrames, int)
itkSetMacro(IntensityImageSelected, bool)
itkSetMacro(AmplitudeImageFileName, std::string)
float * m_IntensityArray
array holding the intensity data
float * m_DistanceArray
array holding the distance data
itkSetMacro(FileFormat, std::string)
bool m_DistanceImageSelected
flag indicating if distance image should be recorded
itkSetMacro(DistanceImageSelected, bool)
std::string m_DistanceImageFileName
file name for saving the distance image
int m_ToFCaptureHeight
height (y-dimension) of the images to record.
bool m_Abort
flag controlling the abort mechanism of the recording procedure. For thread-safety only use in combin...
itkFactorylessNewMacro(Self)
std::string m_FileFormat
file format for saving images. If .csv is chosen, ToFImageCsvWriter is used
std::string m_RGBImageFileName
file name for saving the rgb image
std::mutex m_AbortMutex
mutex for thread-safe data access of abort flag
float * m_AmplitudeArray
array holding the amplitude data
itkSetMacro(AmplitudeImageSelected, bool)
itkSetMacro(RGBImageSelected, bool)
ToFImageRecorder::RecordMode m_RecordMode
mode of recording the images: specified number of frames (PerFrames) or infinite (Infinite)
ToFImageWriter::Pointer m_ToFImageWriter
image writer writing the acquired images to a file
std::string m_IntensityImageFileName
file name for saving the intensity image
itkGetMacro(RGBImageSelected, bool)
int m_RGBCaptureWidth
width (x-dimension) of the images to record.
bool m_RGBImageSelected
flag indicating if rgb image should be recorded
int m_ToFPixelNumber
number of pixels (widht*height) of the images to record
std::string m_AmplitudeImageFileName
file name for saving the amplitude image
itkGetMacro(AmplitudeImageFileName, std::string)
itkGetMacro(FileFormat, std::string)
itkGetMacro(DistanceImageSelected, bool)
ToFCameraDevice::Pointer m_ToFCameraDevice
ToFCameraDevice used for acquiring the images.
unsigned char * m_RGBArray
array holding the RGB data if available (e.g. for Kinect)
itkGetMacro(ToFCaptureWidth, int)
itkGetMacro(DistanceImageFileName, std::string)
bool m_IntensityImageSelected
flag indicating if intensity image should be recorded
int m_NumOfFrames
number of frames to be recorded by this recorder
int m_RGBPixelNumber
number of pixels (widht*height) of the images to record
int m_ToFCaptureWidth
width (x-dimension) of the images to record.
itkGetMacro(RGBCaptureWidth, int)
itkSetMacro(DistanceImageFileName, std::string)
itkGetMacro(ToFCaptureHeight, int)