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;
228 void operator=(const
Self &) ITK_DELETE_FUNCTION;
238 std::
string m_SeriesFormat;
242 bool m_UseCompression;
250 void GenerateNumericFileNames();
256 #ifndef ITK_MANUAL_INSTANTIATION
257 #include "itkImageSeriesWriter.hxx"
260 #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