18 #ifndef itkImageFileWriter_h
19 #define itkImageFileWriter_h
20 #include "ITKIOImageBaseExport.h"
41 const char *message =
"Error in IO",
42 const char *loc =
"Unknown"):
48 const char *message =
"Error in IO",
49 const char *loc =
"Unknown"):
84 template< typename TInputImage >
109 using Superclass::SetInput;
117 itkSetStringMacro(FileName);
118 itkGetStringMacro(FileName);
133 if ( this->m_ImageIO != io )
136 this->m_ImageIO = io;
138 m_FactorySpecifiedImageIO =
false;
150 virtual void Write();
158 return m_PasteIORegion;
163 itkSetMacro(NumberOfStreamDivisions,
unsigned int);
164 itkGetConstReferenceMacro(NumberOfStreamDivisions,
unsigned int);
181 m_PasteIORegion =
ImageIORegion(TInputImage::ImageDimension);
182 m_UserSpecifiedIORegion =
false;
187 itkSetMacro(UseCompression,
bool);
188 itkGetConstReferenceMacro(UseCompression,
bool);
189 itkBooleanMacro(UseCompression);
198 itkSetMacro(UseInputMetaDataDictionary,
bool);
199 itkGetConstReferenceMacro(UseInputMetaDataDictionary,
bool);
200 itkBooleanMacro(UseInputMetaDataDictionary);
206 void PrintSelf(std::ostream & os,
Indent indent)
const override;
209 void GenerateData()
override;
231 #ifndef ITK_MANUAL_INSTANTIATION
232 #include "itkImageFileWriter.hxx"
235 #ifdef ITK_IO_FACTORY_REGISTER_MANAGER
236 #include "itkImageIOFactoryRegisterManager.h"
239 #endif // itkImageFileWriter_h
TInputImage InputImageType
typename InputImageType::RegionType InputImageRegionType
bool m_UseInputMetaDataDictionary
bool m_FactorySpecifiedImageIO
Light weight base class for most itk classes.
ImageIOBase::Pointer m_ImageIO
An ImageIORegion represents a structured region of data.
Abstract superclass defines image IO interface.
bool m_UserSpecifiedImageIO
ImageFileWriterException(const std::string &file, unsigned int line, const char *message="Error in IO", const char *loc="Unknown")
typename InputImageType::PixelType InputImagePixelType
ImageIORegion m_PasteIORegion
The base class for all process objects (source, filters, mappers) in the Insight data processing pipe...
void UpdateLargestPossibleRegion() override
Writes the entire image to file.
class ITK_FORWARD_EXPORT ProcessObject
void SetImageIO(ImageIOBase *io)
Base exception class for IO problems during writing.
unsigned int m_NumberOfStreamDivisions
const ImageIORegion & GetIORegion() const
Standard exception handling object.
bool m_UserSpecifiedIORegion
ImageFileWriterException(const char *file, unsigned int line, const char *message="Error in IO", const char *loc="Unknown")
Writes image data to a single file.
typename InputImageType::Pointer InputImagePointer
Control indentation during Print() invocation.
ImageBaseType::RegionType RegionType