18 #ifndef sitkImageFileWriter_h
19 #define sitkImageFileWriter_h
60 virtual std::string ToString()
const;
63 virtual std::string
GetName()
const {
return std::string(
"ImageFileWriter"); }
71 SITK_RETURN_SELF_TYPE_HEADER SetUseCompression(
bool UseCompression );
72 bool GetUseCompression(
void )
const;
74 SITK_RETURN_SELF_TYPE_HEADER
UseCompressionOn(
void ) {
return this->SetUseCompression(
true); }
75 SITK_RETURN_SELF_TYPE_HEADER
UseCompressionOff(
void ) {
return this->SetUseCompression(
false); }
87 SITK_RETURN_SELF_TYPE_HEADER SetKeepOriginalImageUID(
bool KeepOriginalImageUID );
88 bool GetKeepOriginalImageUID(
void )
const;
94 SITK_RETURN_SELF_TYPE_HEADER SetFileName (
const std::string &fileName );
95 std::string GetFileName()
const;
97 SITK_RETURN_SELF_TYPE_HEADER Execute (
const Image& );
98 SITK_RETURN_SELF_TYPE_HEADER Execute (
const Image& ,
const std::string &inFileName,
bool inUseCompression );
104 template <
class T> Self& ExecuteInternal (
const Image& );
bool m_KeepOriginalImageUID
typelist::Append< typelist::Append< BasicPixelIDTypeList, ComplexPixelIDTypeList >::Type, VectorPixelIDTypeList >::Type NonLabelPixelIDTypeList
Self & UseCompressionOn(void)
Enable compression if available for file type.
SITKIO_EXPORT void WriteImage(const Image &image, const std::string &fileName, bool useCompression=false)
Self & KeepOriginalImageUIDOff(void)
Use the original study/series/frame of reference.
virtual std::string GetName() const
Self &(Self::* MemberFunctionType)(const Image &)
Write out a SimpleITK image to the specified file location.
Self & UseCompressionOff(void)
Enable compression if available for file type.
Self & KeepOriginalImageUIDOn(void)
Use the original study/series/frame of reference.
The main Image class for SimpleITK.
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
NonLabelPixelIDTypeList PixelIDTypeList
Base class for SimpleITK classes based on ProcessObject.