Go to the documentation of this file.
18 #ifndef sitkImageFileReader_h
19 #define sitkImageFileReader_h
29 class MetaDataDictionary;
71 std::string ToString()
const override;
74 std::string
GetName()
const override {
return std::string(
"ImageFileReader"); }
76 SITK_RETURN_SELF_TYPE_HEADER SetFileName (
const std::string &fn );
77 std::string GetFileName()
const;
79 Image Execute()
override;
93 void ReadImageInformation();
111 unsigned int GetDimension( )
const;
112 unsigned int GetNumberOfComponents( )
const;
113 const std::vector<double> &GetOrigin( )
const;
114 const std::vector<double> &GetSpacing( )
const;
115 const std::vector<double> &GetDirection()
const;
116 const std::vector<uint64_t> &GetSize( )
const;
128 std::vector<std::string> GetMetaDataKeys( )
const;
132 bool HasMetaDataKey(
const std::string &key )
const;
142 std::string GetMetaData(
const std::string &key )
const;
171 SITK_RETURN_SELF_TYPE_HEADER SetExtractSize(
const std::vector<unsigned int> &size);
172 const std::vector<unsigned int> &GetExtractSize( )
const;
181 SITK_RETURN_SELF_TYPE_HEADER SetExtractIndex(
const std::vector<int> &index );
182 const std::vector<int> &GetExtractIndex( )
const;
196 template <
class TImageType,
class TInternalImageType>
197 Image ExecuteExtract( TInternalImageType * itkImage );
241 const std::string &imageIO =
"");
The 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.
std::vector< unsigned int > m_ExtractSize
Image information methods updated via ReadImageInformation.
std::vector< int > m_ExtractIndex
Image information methods updated via ReadImageInformation.
Read an image file and return a SimpleITK Image.
std::unique_ptr< MetaDataDictionary > m_MetaDataDictionary
Image information methods updated via ReadImageInformation.
PixelIDValueEnum
Enumerated values of pixelIDs.
std::vector< double > m_Origin
Image information methods updated via ReadImageInformation.
std::string m_FileName
Image information methods updated via ReadImageInformation.
std::function< bool(const std::string &)> m_pfHasMetaDataKey
Image information methods updated via ReadImageInformation.
std::string GetName() const override
unsigned int m_NumberOfComponents
Image information methods updated via ReadImageInformation.
std::vector< double > m_Direction
Image information methods updated via ReadImageInformation.
SITKIO_EXPORT Image ReadImage(const std::string &filename, PixelIDValueEnum outputPixelType=sitkUnknown, const std::string &imageIO="")
ReadImage is a procedural interface to the ImageFileReader class which is convenient for most image r...
std::vector< double > m_Spacing
Image information methods updated via ReadImageInformation.
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
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.
std::function< std::vector< std::string >)> m_pfGetMetaDataKeys
Image information methods updated via ReadImageInformation.
std::function< std::string(const std::string &)> m_pfGetMetaData
Image information methods updated via ReadImageInformation.