Go to the documentation of this file.
18 #ifndef sitkImageFileReader_h
19 #define sitkImageFileReader_h
30 class MetaDataDictionary;
85 ToString()
const override;
91 return std::string(
"ImageFileReader");
94 SITK_RETURN_SELF_TYPE_HEADER
115 ReadImageInformation();
134 GetPixelIDValue()
const;
136 GetDimension()
const;
138 GetNumberOfComponents()
const;
139 const std::vector<double> &
141 const std::vector<double> &
143 const std::vector<double> &
144 GetDirection()
const;
145 const std::vector<uint64_t> &
158 std::vector<std::string>
159 GetMetaDataKeys()
const;
164 HasMetaDataKey(
const std::string & key)
const;
175 GetMetaData(
const std::string & key)
const;
204 SITK_RETURN_SELF_TYPE_HEADER
205 SetExtractSize(
const std::vector<unsigned int> & size);
206 const std::vector<unsigned int> &
207 GetExtractSize()
const;
216 SITK_RETURN_SELF_TYPE_HEADER
217 SetExtractIndex(
const std::vector<int> & index);
218 const std::vector<int> &
219 GetExtractIndex()
const;
222 template <
class TImageType>
234 template <
class TImageType,
class TInternalImageType>
236 ExecuteExtract(TInternalImageType * itkImage);
The Image class for SimpleITK.
std::vector< uint64_t > m_Size
std::vector< unsigned int > m_ExtractSize
std::vector< int > m_ExtractIndex
Read an image file and return a SimpleITK Image.
std::unique_ptr< MetaDataDictionary > m_MetaDataDictionary
SITKIO_EXPORT Image ReadImage(const PathType &filename, PixelIDValueEnum outputPixelType=sitkUnknown, const std::string &imageIO="")
ReadImage is a procedural interface to the ImageFileReader class which is convenient for most image r...
PixelIDValueEnum
Enumerated values of pixelIDs.
std::vector< double > m_Origin
std::function< bool(const std::string &)> m_pfHasMetaDataKey
std::string GetName() const override
unsigned int m_NumberOfComponents
std::vector< double > m_Direction
std::vector< double > m_Spacing
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
An abstract base class for image readers.
PixelIDValueEnum m_PixelType
Base class for SimpleITK classes based on ProcessObject.
std::function< std::vector< std::string >)> m_pfGetMetaDataKeys
std::function< std::string(const std::string &)> m_pfGetMetaData