18 #ifndef sitkImageSeriesReader_h
19 #define sitkImageSeriesReader_h
56 virtual std::string ToString()
const;
59 virtual std::string
GetName()
const {
return std::string(
"ImageSeriesReader"); }
68 { this->m_MetaDataDictionaryArrayUpdate = metaDataDictionaryArrayUpdate;
return *
this; }
100 static std::vector<std::string> GetGDCMSeriesFileNames(
const std::string &directory,
101 const std::string &seriesID =
"",
102 bool useSeriesDetails =
false,
103 bool recursive =
false,
104 bool loadSequences =
false );
111 static std::vector<std::string> GetGDCMSeriesIDs(
const std::string &directory );
113 SITK_RETURN_SELF_TYPE_HEADER SetFileNames (
const std::vector<std::string> &fileNames );
114 const std::vector<std::string> &GetFileNames()
const;
132 std::vector<std::string>
GetMetaDataKeys(
unsigned int slice )
const {
return this->m_pfGetMetaDataKeys(slice); }
136 bool HasMetaDataKey(
unsigned int slice,
const std::string &key )
const {
return this->m_pfHasMetaDataKey(slice, key); }
146 std::string
GetMetaData(
unsigned int slice,
const std::string &key )
const {
return this->m_pfGetMetaData(slice, key); }
163 nsstd::function<std::vector<std::string>(int)> m_pfGetMetaDataKeys;
195 const std::string &imageIO=
"");
An abract base class for image readers.
bool HasMetaDataKey(unsigned int slice, const std::string &key) const
Query a meta-data dictionary for the existence of a key.
nsstd::function< std::string(int, const std::string &)> m_pfGetMetaData
PixelIDValueEnum
Enumerated values of pixelIDs.
bool m_MetaDataDictionaryArrayUpdate
Self & MetaDataDictionaryArrayUpdateOff()
bool GetMetaDataDictionaryArrayUpdate()
Read series of image files into a SimpleITK image.
std::vector< std::string > m_FileNames
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...
virtual std::string GetName() const
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
std::vector< std::string > GetMetaDataKeys(unsigned int slice) const
Get the meta-data dictionary keys for a slice.
The Image class for SimpleITK.
std::string GetMetaData(unsigned int slice, const std::string &key) const
Get the value of a meta-data dictionary entry as a string.
nsstd::function< bool(int, const std::string &)> m_pfHasMetaDataKey
Self & SetMetaDataDictionaryArrayUpdate(bool metaDataDictionaryArrayUpdate)
Self & MetaDataDictionaryArrayUpdateOn()
itk::ProcessObject * m_Filter