Go to the documentation of this file.
18 #ifndef sitkImageFileWriter_h
19 #define sitkImageFileWriter_h
65 ToString()
const override;
71 return std::string(
"ImageFileWriter");
76 virtual std::vector<std::string>
86 SITK_RETURN_SELF_TYPE_HEADER
87 SetUseCompression(
bool UseCompression);
89 GetUseCompression()
const;
91 SITK_RETURN_SELF_TYPE_HEADER
94 return this->SetUseCompression(
true);
96 SITK_RETURN_SELF_TYPE_HEADER
99 return this->SetUseCompression(
false);
110 SITK_RETURN_SELF_TYPE_HEADER
111 SetCompressionLevel(
int);
113 GetCompressionLevel()
const;
122 SITK_RETURN_SELF_TYPE_HEADER
123 SetCompressor(
const std::string &);
140 virtual SITK_RETURN_SELF_TYPE_HEADER
141 SetImageIO(
const std::string & imageio);
155 SITK_RETURN_SELF_TYPE_HEADER
156 SetKeepOriginalImageUID(
bool KeepOriginalImageUID);
158 GetKeepOriginalImageUID()
const;
160 SITK_RETURN_SELF_TYPE_HEADER
163 return this->SetKeepOriginalImageUID(
true);
165 SITK_RETURN_SELF_TYPE_HEADER
168 return this->SetKeepOriginalImageUID(
false);
172 SITK_RETURN_SELF_TYPE_HEADER
173 SetFileName(
const PathType & fileName);
177 SITK_RETURN_SELF_TYPE_HEADER
178 Execute(
const Image &);
179 SITK_RETURN_SELF_TYPE_HEADER
180 Execute(
const Image &,
const PathType & inFileName,
bool useCompression,
int compressionLevel);
184 GetImageIOBase(
const PathType & fileName);
188 ExecuteInternal(
const Image &);
220 WriteImage(
const Image & image,
const PathType & fileName,
bool useCompression =
false,
int compressionLevel = -1);
The Image class for SimpleITK.
NonLabelPixelIDTypeList PixelIDTypeList
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Self & UseCompressionOff()
Enable compression if available for file type.
SITKIO_HIDDEN std::vector< std::string > GetRegisteredImageIOs()
bool m_KeepOriginalImageUID
SITKIO_EXPORT void WriteImage(const Image &image, const PathType &fileName, bool useCompression=false, int compressionLevel=-1)
WriteImage is a procedural interface to the ImageFileWriter. class which is convenient for many image...
Self & KeepOriginalImageUIDOff()
Set/Get name of ImageIO to use.
Self & UseCompressionOn()
Enable compression if available for file type.
typelist2::append< BasicPixelIDTypeList, ComplexPixelIDTypeList, VectorPixelIDTypeList >::type NonLabelPixelIDTypeList
std::string GetName() const override
Base class for SimpleITK classes based on ProcessObject.
Self & KeepOriginalImageUIDOn()
Set/Get name of ImageIO to use.
Self &(Self::* MemberFunctionType)(const Image &)
std::string m_ImageIOName
Write out a SimpleITK image to the specified file location.