12#ifndef mitkToFImageWriter_h
13#define mitkToFImageWriter_h
15#include <MitkToFHardwareExports.h>
16#include "mitkCommon.h"
20#include "itkObjectFactory.h"
98 virtual void Add(
float* ,
float* ,
float* ,
unsigned char* =
nullptr){};
105 void CheckForFileExtension(std::string& fileName);
Writer class for ToF images.
virtual void Open()
Open file(s) for writing.
virtual void Close()
Close file(s) add header and write.
itkGetMacro(ToFCaptureWidth, int)
itkSetMacro(RGBCaptureWidth, int)
std::string m_DistanceImageFileName
file name for saving the distance image
itkSetMacro(Extension, std::string)
std::string m_IntensityImageFileName
file name for saving the intensity image
virtual void Add(float *, float *, float *, unsigned char *=nullptr)
Add new data to file.
itkGetMacro(DistanceImageSelected, bool)
itkSetMacro(AmplitudeImageFileName, std::string)
bool m_DistanceImageSelected
flag indicating if distance image should be recorded
itkSetMacro(AmplitudeImageSelected, bool)
int m_ToFPixelNumber
number of pixels (widht*height) of the images to record
itkGetMacro(AmplitudeImageFileName, std::string)
itkGetMacro(RGBCaptureWidth, int)
itkFactorylessNewMacro(Self)
itkSetMacro(IntensityImageFileName, std::string)
bool m_AmplitudeImageSelected
flag indicating if amplitude image should be recorded
itkSetMacro(ToFCaptureWidth, int)
itkSetMacro(DistanceImageSelected, bool)
std::string m_Extension
file extension used for saving images
itkSetMacro(RGBCaptureHeight, int)
itkGetMacro(RGBImageSelected, bool)
itkGetMacro(RGBCaptureHeight, int)
std::string m_AmplitudeImageFileName
file name for saving the amplitude image
itkGetMacro(AmplitudeImageSelected, bool)
itkGetMacro(IntensityImageFileName, std::string)
std::string m_RGBImageFileName
file name for saving the RGB image
int m_RGBImageSizeInBytes
size of the image to save in bytes
int m_RGBCaptureHeight
height (y-dimension) of the images to record.
int m_NumOfFrames
number of frames written to the image. Used for pic header.
bool m_RGBImageSelected
flag indicating if RGB image should be recorded
itkSetMacro(RGBImageSelected, bool)
int m_ToFCaptureWidth
width (x-dimension) of the images to record.
int m_ToFImageSizeInBytes
size of the image to save in bytes
itkGetMacro(Extension, std::string)
int m_RGBPixelNumber
number of pixels (widht*height) of the images to record
itkSetMacro(RGBImageFileName, std::string)
mitkClassMacroItkParent(ToFImageWriter, itk::Object)
itkGetMacro(ToFCaptureHeight, int)
itkSetMacro(ToFCaptureHeight, int)
itkGetMacro(RGBImageFileName, std::string)
bool m_IntensityImageSelected
flag indicating if intensity image should be recorded
int m_RGBCaptureWidth
width (x-dimension) of the images to record.
itkSetMacro(DistanceImageFileName, std::string)
ToFImageWriter::ToFImageType m_ToFImageType
type of image to be recorded: ToFImageType3D (0) or ToFImageType2DPlusT (1)
itkGetMacro(DistanceImageFileName, std::string)
itkSetMacro(IntensityImageSelected, bool)
itkGetMacro(IntensityImageSelected, bool)
int m_ToFCaptureHeight
height (y-dimension) of the images to record.