18#ifndef itkImageSeriesWriter_h
19#define itkImageSeriesWriter_h
20#include "ITKIOImageBaseExport.h"
84template <
typename TInputImage,
typename TOutputImage>
168 itkSetStringMacro(SeriesFormat);
169 itkGetStringMacro(SeriesFormat);
185 const FileNamesContainer &
217 itkSetMacro(UseCompression,
bool);
218 itkGetConstReferenceMacro(UseCompression,
bool);
219 itkBooleanMacro(UseCompression);
271#ifndef ITK_MANUAL_INSTANTIATION
272# include "itkImageSeriesWriter.hxx"
virtual void SetDescription(const std::string &s)
ExceptionObject() noexcept=default
Writes image data to a single file.
Abstract superclass defines image IO interface.
SmartPointer< Self > Pointer
ImageSeriesWriterException(const std::string &file, unsigned int line, const char *message="Error in IO")
ImageSeriesWriterException(char *file, unsigned int line, const char *message="Error in IO")
~ImageSeriesWriterException() noexcept override
void GenerateNumericFileNamesAndWrite()
SizeValueType m_StartIndex
std::vector< DictionaryRawPointer > DictionaryArrayType
SizeValueType m_IncrementIndex
FileNamesContainer m_FileNames
void SetFileName(const std::string &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()
SmartPointer< Self > Pointer
void AddFileName(const std::string &name)
std::vector< std::string > FileNamesContainer
const FileNamesContainer & GetFileNames() const
SmartPointer< const Self > ConstPointer
typename InputImageType::RegionType InputImageRegionType
std::string m_SeriesFormat
typename OutputImageType::RegionType OutputImageRegionType
bool m_UserSpecifiedImageIO
void SetFileNames(const FileNamesContainer &name)
void PrintSelf(std::ostream &os, Indent indent) const override
TOutputImage OutputImageType
MetaDataDictionary * DictionaryRawPointer
ImageIOBase::Pointer m_ImageIO
DictionaryArrayRawPointer m_MetaDataDictionaryArray
MetaDataDictionary DictionaryType
void GenerateNumericFileNames()
ImageFileWriter< TOutputImage > WriterType
Control indentation during Print() invocation.
virtual void Modified() const
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
Protected method for setting indexed and named inputs.
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType