Go to the documentation of this file.
18 #ifndef sitkImageSeriesReader_h
19 #define sitkImageSeriesReader_h
79 ToString()
const override;
85 return std::string(
"ImageSeriesReader");
94 SITK_RETURN_SELF_TYPE_HEADER
97 this->m_MetaDataDictionaryArrayUpdate = metaDataDictionaryArrayUpdate;
103 return this->m_MetaDataDictionaryArrayUpdate;
108 SITK_RETURN_SELF_TYPE_HEADER
111 return this->SetMetaDataDictionaryArrayUpdate(
true);
113 SITK_RETURN_SELF_TYPE_HEADER
116 return this->SetMetaDataDictionaryArrayUpdate(
false);
147 static std::vector<PathType>
148 GetGDCMSeriesFileNames(
const PathType & directory,
149 const std::string & seriesID =
"",
150 bool useSeriesDetails =
false,
151 bool recursive =
false,
152 bool loadSequences =
false);
164 static std::vector<std::string>
165 GetGDCMSeriesIDs(
const PathType & directory,
bool useSeriesDetails =
false);
167 SITK_RETURN_SELF_TYPE_HEADER
168 SetFileNames(
const std::vector<PathType> & fileNames);
169 const std::vector<PathType> &
170 GetFileNames()
const;
189 std::vector<std::string>
192 return this->m_pfGetMetaDataKeys(slice);
200 return this->m_pfHasMetaDataKey(slice, key);
214 return this->m_pfGetMetaData(slice, key);
219 template <
class TImageType>
270 ReadImage(
const std::vector<PathType> & fileNames,
272 const std::string & imageIO =
"");
The Image class for SimpleITK.
std::function< bool(int, const std::string &)> m_pfHasMetaDataKey
bool GetMetaDataDictionaryArrayUpdate()
std::function< std::string(int, const std::string &)> m_pfGetMetaData
std::vector< std::string > GetMetaDataKeys(unsigned int slice) const
Get the meta-data dictionary keys for a slice.
std::string GetMetaData(unsigned int slice, const std::string &key) const
Get the value of a meta-data dictionary entry as a string.
bool HasMetaDataKey(unsigned int slice, const std::string &key) const
Query a meta-data dictionary for the existence of a key.
std::vector< PathType > m_FileNames
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::function< std::vector< std::string >int)> m_pfGetMetaDataKeys
Read series of image files into a SimpleITK image.
Self & MetaDataDictionaryArrayUpdateOff()
Self & SetMetaDataDictionaryArrayUpdate(bool metaDataDictionaryArrayUpdate)
An abstract base class for image readers.
bool m_MetaDataDictionaryArrayUpdate
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Self & MetaDataDictionaryArrayUpdateOn()
itk::ProcessObject * m_Filter
Base class for SimpleITK classes based on ProcessObject.
std::string GetName() const override