Medical Imaging Interaction Toolkit
2023.04.00
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
12 #ifndef mitkToFImageRecorder_h
13 #define mitkToFImageRecorder_h
15 #include "MitkToFHardwareExports.h"
21 #include <itkObject.h>
22 #include <itkObjectFactory.h>
23 #include <itkCommand.h>
54 itkFactorylessNewMacro(Self);
58 itkGetMacro( DistanceImageFileName, std::string );
59 itkGetMacro( AmplitudeImageFileName, std::string );
60 itkGetMacro( IntensityImageFileName, std::string );
61 itkGetMacro( RGBImageFileName, std::string );
62 itkGetMacro( ToFCaptureWidth,
int );
63 itkGetMacro( ToFCaptureHeight,
int );
64 itkGetMacro( RGBCaptureWidth,
int );
65 itkGetMacro( RGBCaptureHeight,
int );
66 itkGetMacro( DistanceImageSelected,
bool );
67 itkGetMacro( AmplitudeImageSelected,
bool );
68 itkGetMacro( IntensityImageSelected,
bool );
69 itkGetMacro( RGBImageSelected,
bool );
70 itkGetMacro( NumOfFrames,
int );
71 itkGetMacro( FileFormat, std::string );
73 itkSetMacro( DistanceImageFileName, std::string );
74 itkSetMacro( AmplitudeImageFileName, std::string );
75 itkSetMacro( IntensityImageFileName, std::string );
76 itkSetMacro(RGBImageFileName, std::string );
77 itkSetMacro( DistanceImageSelected,
bool );
78 itkSetMacro( AmplitudeImageSelected,
bool );
79 itkSetMacro( IntensityImageSelected,
bool );
80 itkSetMacro( RGBImageSelected,
bool );
81 itkSetMacro( NumOfFrames,
int );
82 itkSetMacro( FileFormat, std::string );
118 void StartRecording();
122 void StopRecording();
126 void WaitForThreadBeingTerminated();
std::string m_FileFormat
file format for saving images. If .csv is chosen, ToFImageCsvWriter is used
bool m_IntensityImageSelected
flag indicating if intensity image should be recorded
std::mutex m_AbortMutex
mutex for thread-safe data access of abort flag
float * m_IntensityArray
array holding the intensity data
int m_NumOfFrames
number of frames to be recorded by this recorder
bool m_RGBImageSelected
flag indicating if rgb image should be recorded
std::string m_AmplitudeImageFileName
file name for saving the amplitude image
ToFImageWriter::Pointer m_ToFImageWriter
image writer writing the acquired images to a file
int m_SourceDataSize
size of the source data provided by the device
std::string m_IntensityImageFileName
file name for saving the intensity image
#define mitkClassMacroItkParent(className, SuperClassName)
DataCollection - Class to facilitate loading/accessing structured data.
int m_ToFPixelNumber
number of pixels (widht*height) of the images to record
bool m_DistanceImageSelected
flag indicating if distance image should be recorded
float * m_AmplitudeArray
array holding the amplitude data
ToFCameraDevice::Pointer m_ToFCameraDevice
ToFCameraDevice used for acquiring the images.
ToFImageRecorder::RecordMode m_RecordMode
mode of recording the images: specified number of frames (PerFrames) or infinite (Infinite)
int m_ImageSequence
number of images currently acquired
char * m_SourceDataArray
array holding the source data
ToFImageWriter::ToFImageType m_ToFImageType
type of image to be recorded: ToFImageType3D (0) or ToFImageType2DPlusT (1)
Recorder class for ToF images.
std::string m_RGBImageFileName
file name for saving the rgb image
int m_RGBCaptureWidth
width (x-dimension) of the images to record.
int m_RGBCaptureHeight
height (y-dimension) of the images to record.
int m_ToFCaptureWidth
width (x-dimension) of the images to record.
int m_RGBPixelNumber
number of pixels (widht*height) of the images to record
Virtual interface and base class for all Time-of-Flight devices.
std::string m_DistanceImageFileName
file name for saving the distance image
bool m_Abort
flag controlling the abort mechanism of the recording procedure. For thread-safety only use in combin...
int m_ToFCaptureHeight
height (y-dimension) of the images to record.
bool m_AmplitudeImageSelected
flag indicating if amplitude image should be recorded
unsigned char * m_RGBArray
array holding the RGB data if available (e.g. for Kinect)
float * m_DistanceArray
array holding the distance data