18 #ifndef sitkImageFileWriter_h
19 #define sitkImageFileWriter_h
62 virtual std::string ToString()
const;
65 virtual std::string
GetName()
const {
return std::string(
"ImageFileWriter"); }
78 SITK_RETURN_SELF_TYPE_HEADER SetUseCompression(
bool UseCompression );
79 bool GetUseCompression(
void )
const;
81 SITK_RETURN_SELF_TYPE_HEADER
UseCompressionOn(
void ) {
return this->SetUseCompression(
true); }
82 SITK_RETURN_SELF_TYPE_HEADER
UseCompressionOff(
void ) {
return this->SetUseCompression(
false); }
97 virtual SITK_RETURN_SELF_TYPE_HEADER SetImageIO(
const std::string &imageio);
98 virtual std::string GetImageIO(
void )
const;
110 SITK_RETURN_SELF_TYPE_HEADER SetKeepOriginalImageUID(
bool KeepOriginalImageUID );
111 bool GetKeepOriginalImageUID(
void )
const;
117 SITK_RETURN_SELF_TYPE_HEADER SetFileName (
const std::string &fileName );
118 std::string GetFileName()
const;
120 SITK_RETURN_SELF_TYPE_HEADER Execute (
const Image& );
121 SITK_RETURN_SELF_TYPE_HEADER Execute (
const Image& ,
const std::string &inFileName,
bool useCompression );
127 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 &)
std::string m_ImageIOName
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 Image class for SimpleITK.
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
NonLabelPixelIDTypeList PixelIDTypeList
SITKIO_HIDDEN std::vector< std::string > GetRegisteredImageIOs()
Base class for SimpleITK classes based on ProcessObject.