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 >
115 using Superclass::SetInput;
136 virtual void Write();
161 itkSetStringMacro(SeriesFormat);
162 itkGetStringMacro(SeriesFormat);
169 if ( m_FileNames != name )
187 m_FileNames.push_back(name);
196 m_FileNames.push_back(name);
203 itkSetMacro(MetaDataDictionaryArray, DictionaryArrayRawPointer);
206 itkSetMacro(UseCompression,
bool);
207 itkGetConstReferenceMacro(UseCompression,
bool);
208 itkBooleanMacro(UseCompression);
214 void PrintSelf(std::ostream & os,
Indent indent)
const override;
217 void GenerateData()
override;
221 void GenerateNumericFileNamesAndWrite();
226 bool m_UserSpecifiedImageIO{
false};
249 void GenerateNumericFileNames();
255 #ifndef ITK_MANUAL_INSTANTIATION
256 #include "itkImageSeriesWriter.hxx"
259 #endif // itkImageSeriesWriter_h
void AddFileName(std::string const &name)
Light weight base class for most itk classes.
const FileNamesContainer & GetFileNames() const
typename OutputImageType::RegionType OutputImageRegionType
Abstract superclass defines image IO interface.
unsigned long SizeValueType
ImageSeriesWriterException(char *file, unsigned int line, const char *message="Error in IO")
FileNamesContainer m_FileNames
const DictionaryArrayType * DictionaryArrayRawPointer
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
TOutputImage OutputImageType
class ITK_FORWARD_EXPORT ProcessObject
void SetFileName(std::string const &name)
std::string m_SeriesFormat
std::vector< std::string > FileNamesContainer
std::vector< DictionaryRawPointer > DictionaryArrayType
ImageIOBase::Pointer m_ImageIO
Standard exception handling object.
typename InputImageType::RegionType InputImageRegionType
Writes image data to a single file.
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.
TInputImage InputImageType
ImageBaseType::RegionType RegionType
Base exception class for IO problems during writing.