20 #include "itksys/SystemTools.hxx"
25 m_DistanceImageFileName(), m_AmplitudeImageFileName(), m_IntensityImageFileName(), m_RGBImageFileName(),
26 m_NumOfFrames(0), m_DistanceImageSelected(true), m_AmplitudeImageSelected(false),
27 m_IntensityImageSelected(false), m_RGBImageSelected(false), m_ToFCaptureWidth(200),m_ToFCaptureHeight(200),
28 m_RGBCaptureWidth(200),m_RGBCaptureHeight(200),
29 m_ToFPixelNumber(0), m_ToFImageSizeInBytes(0),
30 m_RGBPixelNumber(0), m_RGBImageSizeInBytes(0),
41 std::string baseFilename = itksys::SystemTools::GetFilenameWithoutLastExtension( fileName );
42 std::string extension = itksys::SystemTools::GetFilenameLastExtension( fileName );
44 if( extension.length() != 0 && extension != this->
m_Extension)
46 MITK_ERROR <<
"Wrong file extension for " << baseFilename <<
47 " The default extension is " << this->
m_Extension.c_str() <<
48 ", currently the requested file extension is " <<
49 extension.c_str() <<
"!";
54 if( found == std::string::npos)
void CheckForFileExtension(std::string &fileName)
Checks file name if file extension exists. If not an error message is returned.
void SetToFImageType(ToFImageWriter::ToFImageType toFImageType)
Set the type of image to be written.
DataCollection - Class to facilitate loading/accessing structured data.
std::string m_Extension
file extension used for saving images
Writer class for ToF images.
ToFImageWriter::ToFImageType GetToFImageType()
Get the type of image to be written.
ToFImageWriter::ToFImageType m_ToFImageType
type of image to be recorded: ToFImageType3D (0) or ToFImageType2DPlusT (1)