12 #ifndef __mitkToFImageWriter_h 13 #define __mitkToFImageWriter_h 19 #include "itkObject.h" 20 #include "itkObjectFactory.h" 44 itkFactorylessNewMacro(Self);
48 itkGetMacro( DistanceImageFileName, std::string );
49 itkGetMacro( AmplitudeImageFileName, std::string );
50 itkGetMacro( IntensityImageFileName, std::string );
51 itkGetMacro( RGBImageFileName, std::string );
52 itkGetMacro( Extension, std::string );
53 itkGetMacro( ToFCaptureWidth,
int );
54 itkGetMacro( ToFCaptureHeight,
int );
55 itkGetMacro( RGBCaptureWidth,
int );
56 itkGetMacro( RGBCaptureHeight,
int );
57 itkGetMacro( DistanceImageSelected,
bool );
58 itkGetMacro( AmplitudeImageSelected,
bool );
59 itkGetMacro( IntensityImageSelected,
bool );
60 itkGetMacro( RGBImageSelected,
bool );
62 itkSetMacro( DistanceImageFileName, std::string );
63 itkSetMacro( AmplitudeImageFileName, std::string );
64 itkSetMacro( IntensityImageFileName, std::string );
65 itkSetMacro( RGBImageFileName, std::string );
66 itkSetMacro( Extension, std::string );
67 itkSetMacro( ToFCaptureWidth,
int );
68 itkSetMacro( ToFCaptureHeight,
int );
69 itkSetMacro( RGBCaptureWidth,
int );
70 itkSetMacro( RGBCaptureHeight,
int );
71 itkSetMacro( DistanceImageSelected,
bool );
72 itkSetMacro( AmplitudeImageSelected,
bool );
73 itkSetMacro( IntensityImageSelected,
bool );
74 itkSetMacro( RGBImageSelected,
bool );
98 virtual void Add(
float* ,
float* ,
float* ,
unsigned char* =
nullptr){};
105 void CheckForFileExtension(std::string& fileName);
130 #endif // __mitkToFImageWriter_h
int m_RGBImageSizeInBytes
size of the image to save in bytes
bool m_AmplitudeImageSelected
flag indicating if amplitude image should be recorded
int m_NumOfFrames
number of frames written to the image. Used for pic header.
bool m_IntensityImageSelected
flag indicating if intensity image should be recorded
#define MITKTOFHARDWARE_EXPORT
bool m_DistanceImageSelected
flag indicating if distance image should be recorded
DataCollection - Class to facilitate loading/accessing structured data.
virtual void Close()
Close file(s) add header and write.
int m_RGBPixelNumber
number of pixels (widht*height) of the images to record
int m_ToFCaptureWidth
width (x-dimension) of the images to record.
int m_ToFCaptureHeight
height (y-dimension) of the images to record.
int m_RGBCaptureHeight
height (y-dimension) of the images to record.
std::string m_IntensityImageFileName
file name for saving the intensity image
bool m_RGBImageSelected
flag indicating if RGB image should be recorded
std::string m_AmplitudeImageFileName
file name for saving the amplitude image
int m_ToFPixelNumber
number of pixels (widht*height) of the images to record
std::string m_Extension
file extension used for saving images
Writer class for ToF images.
#define mitkClassMacroItkParent(className, SuperClassName)
virtual void Add(float *, float *, float *, unsigned char *=nullptr)
Add new data to file.
std::string m_DistanceImageFileName
file name for saving the distance image
int m_ToFImageSizeInBytes
size of the image to save in bytes
std::string m_RGBImageFileName
file name for saving the RGB image
virtual void Open()
Open file(s) for writing.
ToFImageWriter::ToFImageType m_ToFImageType
type of image to be recorded: ToFImageType3D (0) or ToFImageType2DPlusT (1)
int m_RGBCaptureWidth
width (x-dimension) of the images to record.