Go to the documentation of this file.
18 #ifndef sitkImageFileReader_h
19 #define sitkImageFileReader_h
29 class MetaDataDictionary;
58 virtual std::string ToString()
const;
61 virtual std::string
GetName()
const {
return std::string(
"ImageFileReader"); }
63 SITK_RETURN_SELF_TYPE_HEADER SetFileName (
const std::string &fn );
64 std::string GetFileName()
const;
80 void ReadImageInformation(
void);
98 unsigned int GetDimension(
void )
const;
99 unsigned int GetNumberOfComponents(
void )
const;
100 const std::vector<double> &GetOrigin(
void )
const;
101 const std::vector<double> &GetSpacing(
void )
const;
102 const std::vector<double> &GetDirection()
const;
103 const std::vector<uint64_t> &GetSize(
void )
const;
115 std::vector<std::string> GetMetaDataKeys(
void )
const;
119 bool HasMetaDataKey(
const std::string &key )
const;
129 std::string GetMetaData(
const std::string &key )
const;
The main Image class for SimpleITK.
std::vector< uint64_t > m_Size
Image information methods updated via ReadImageInformation.
unsigned int m_Dimension
Image information methods updated via ReadImageInformation.
nsstd::function< std::vector< std::string >)> m_pfGetMetaDataKeys
Image information methods updated via ReadImageInformation.
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Image information methods updated via ReadImageInformation.
Read an image file and return a SimpleITK Image.
PixelIDValueEnum
Enumerated values of pixelIDs.
virtual std::string GetName() const
std::vector< double > m_Origin
Image information methods updated via ReadImageInformation.
SITKIO_EXPORT Image ReadImage(const std::string &filename, PixelIDValueEnum outputPixelType=sitkUnknown)
ReadImage is a procedural interface to the ImageFileReader class which is convenient for most image r...
std::string m_FileName
Image information methods updated via ReadImageInformation.
unsigned int m_NumberOfComponents
Image information methods updated via ReadImageInformation.
std::vector< double > m_Direction
Image information methods updated via ReadImageInformation.
nsstd::function< std::string(const std::string &)> m_pfGetMetaData
Image information methods updated via ReadImageInformation.
std::vector< double > m_Spacing
Image information methods updated via ReadImageInformation.
An abract base class for image readers.
PixelIDValueEnum m_PixelType
Image information methods updated via ReadImageInformation.
Base class for SimpleITK classes based on ProcessObject.
nsstd::auto_ptr< MetaDataDictionary > m_MetaDataDictionary
Image information methods updated via ReadImageInformation.
nsstd::function< bool(const std::string &)> m_pfHasMetaDataKey
Image information methods updated via ReadImageInformation.