14 #ifndef __itkCastImageFileWriter_h 15 #define __itkCastImageFileWriter_h 17 #include "itkProcessObject.h" 18 #include "itkImageIOBase.h" 19 #include "itkExceptionObject.h" 21 #include "itkImageIORegion.h" 31 template <
class TInputImage>
56 using Superclass::SetInput;
57 virtual void SetInput(
const InputImageType *input);
58 const InputImageType * GetInput(
void);
59 const InputImageType * GetInput(
unsigned int idx);
62 itkSetStringMacro(FileName);
63 itkGetStringMacro(FileName);
77 if (this->m_ImageIO != io)
82 m_FactorySpecifiedImageIO =
false;
84 itkGetObjectMacro(ImageIO,ImageIOBase);
93 virtual void Write(
void);
97 void SetIORegion(
const ImageIORegion & region);
100 return m_PasteIORegion;
106 itkSetMacro(NumberOfStreamDivisions,
unsigned int);
107 itkGetConstReferenceMacro(NumberOfStreamDivisions,
unsigned int);
118 itkSetMacro(UseCompression,
bool);
119 itkGetConstReferenceMacro(UseCompression,
bool);
120 itkBooleanMacro(UseCompression);
128 itkSetMacro(UseInputMetaDataDictionary,
bool);
129 itkGetConstReferenceMacro(UseInputMetaDataDictionary,
bool);
130 itkBooleanMacro(UseInputMetaDataDictionary);
133 itkSetEnumMacro(ComponentType, IOComponentType);
134 itkGetEnumMacro(ComponentType, IOComponentType);
139 void PrintSelf(std::ostream& os, Indent indent)
const ITK_OVERRIDE;
146 void operator=(
const Self&);
171 #if !defined(ITK_MANUAL_INSTANTIATION) && !defined(__itkCastImageFileWriter_hxx) 175 #endif // __itkCastImageFileWriter_h SmartPointer< const Self > ConstPointer
ImageIOBase::Pointer m_ImageIO
bool m_UseInputMetaDataDictionary
InputImageType::Pointer InputImagePointer
bool m_FactorySpecifiedImageIO
IOComponentType m_ComponentType
unsigned int m_NumberOfStreamDivisions
virtual void Update() ITK_OVERRIDE
Writes image data, after casting, to a single file.
TInputImage InputImageType
InputImageType::RegionType InputImageRegionType
void SetImageIO(ImageIOBase *io)
ImageIORegion m_PasteIORegion
SmartPointer< Self > Pointer
bool m_UserSpecifiedIORegion
const ImageIORegion & GetIORegion(void) const
bool m_UserSpecifiedImageIO
ImageIOBase::IOComponentType IOComponentType
InputImageType::PixelType InputImagePixelType