18 #ifndef itkImageSeriesWriter_h
19 #define itkImageSeriesWriter_h
20 #include "ITKIOImageBaseExport.h"
44 const char *message =
"Error in IO"):
47 SetDescription(message);
52 const char *message =
"Error in IO"):
55 SetDescription(message);
82 template<
typename TInputImage,
typename TOutputImage >
113 using Superclass::SetInput;
134 virtual void Write();
159 itkSetStringMacro(SeriesFormat);
160 itkGetStringMacro(SeriesFormat);
167 if ( m_FileNames != name )
185 m_FileNames.push_back(name);
194 m_FileNames.push_back(name);
201 itkSetMacro(MetaDataDictionaryArray, DictionaryArrayRawPointer);
204 itkSetMacro(UseCompression,
bool);
205 itkGetConstReferenceMacro(UseCompression,
bool);
206 itkBooleanMacro(UseCompression);
212 virtual
void PrintSelf(std::ostream & os,
Indent indent) const ITK_OVERRIDE;
215 virtual
void GenerateData(
void) ITK_OVERRIDE;
219 void GenerateNumericFileNamesAndWrite();
224 bool m_UserSpecifiedImageIO;
237 std::
string m_SeriesFormat;
241 bool m_UseCompression;
249 void GenerateNumericFileNames();
255 #ifndef ITK_MANUAL_INSTANTIATION
256 #include "itkImageSeriesWriter.hxx"
259 #endif // itkImageSeriesWriter_h
void AddFileName(std::string const &name)
MetaDataDictionary DictionaryType
Light weight base class for most itk classes.
SmartPointer< Self > Pointer
const FileNamesContainer & GetFileNames() const
std::vector< std::string > FileNamesContainer
ImageFileWriter< TOutputImage > WriterType
Abstract superclass defines image IO interface.
TOutputImage OutputImageType
ImageSeriesWriterException(char *file, unsigned int line, const char *message="Error in IO")
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
unsigned long SizeValueType
void SetFileName(std::string const &name)
virtual void Update() override
Standard exception handling object.
OutputImageType::RegionType OutputImageRegionType
MetaDataDictionary * DictionaryRawPointer
Writes image data to a single file.
InputImageType::RegionType InputImageRegionType
TInputImage InputImageType
SmartPointer< const Self > ConstPointer
void SetFileNames(const FileNamesContainer &name)
ImageSeriesWriterException(const std::string &file, unsigned int line, const char *message="Error in IO")
Control indentation during Print() invocation.
Writes image data to a series of data files.
std::vector< DictionaryRawPointer > DictionaryArrayType
Base exception class for IO problems during writing.
const DictionaryArrayType * DictionaryArrayRawPointer