18#ifndef itkImageSeriesWriter_h
19#define itkImageSeriesWriter_h
20#include "ITKIOImageBaseExport.h"
44 : ExceptionObject(file, line)
46 SetDescription(message);
51 : ExceptionObject(file, line)
53 SetDescription(message);
84template <
typename TInputImage,
typename TOutputImage>
117 using Superclass::SetInput;
168 itkSetStringMacro(SeriesFormat);
169 itkGetStringMacro(SeriesFormat);
177 if (m_FileNames != name)
185 const FileNamesContainer &
197 m_FileNames.push_back(name);
207 m_FileNames.push_back(name);
217 itkSetMacro(UseCompression,
bool);
218 itkGetConstReferenceMacro(UseCompression,
bool);
219 itkBooleanMacro(UseCompression);
240 bool m_UserSpecifiedImageIO{
false };
251 std::string m_SeriesFormat{};
255 bool m_UseCompression{};
271#ifndef ITK_MANUAL_INSTANTIATION
272# include "itkImageSeriesWriter.hxx"
Writes image data to a single file.
Abstract superclass defines image IO interface.
Base exception class for IO problems during writing.
ImageSeriesWriterException(const std::string &file, unsigned int line, const char *message="Error in IO")
~ImageSeriesWriterException() noexcept override
Writes image data to a series of data files.
void GenerateNumericFileNamesAndWrite()
std::vector< DictionaryRawPointer > DictionaryArrayType
void AddFileName(std::string const &name)
const InputImageType * GetInput(unsigned int idx)
~ImageSeriesWriter() override=default
void GenerateData() override
const DictionaryArrayType * DictionaryArrayRawPointer
TInputImage InputImageType
void SetInput(const InputImageType *input)
const InputImageType * GetInput()
std::vector< std::string > FileNamesContainer
const FileNamesContainer & GetFileNames() const
typename InputImageType::RegionType InputImageRegionType
typename OutputImageType::RegionType OutputImageRegionType
void SetFileNames(const FileNamesContainer &name)
void PrintSelf(std::ostream &os, Indent indent) const override
TOutputImage OutputImageType
void SetFileName(std::string const &name)
void GenerateNumericFileNames()
Control indentation during Print() invocation.
Light weight base class for most itk classes.
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
ImageBaseType::RegionType RegionType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
class ITK_FORWARD_EXPORT ProcessObject
unsigned long SizeValueType