18#ifndef sitkImageSeriesReader_h
19#define sitkImageSeriesReader_h
85 return std::string(
"ImageSeriesReader");
94 SITK_RETURN_SELF_TYPE_HEADER
108 SITK_RETURN_SELF_TYPE_HEADER
110 SITK_RETURN_SELF_TYPE_HEADER
141 static std::vector<PathType>
143 const std::string & seriesID =
"",
144 bool useSeriesDetails =
false,
145 bool recursive =
false,
146 bool loadSequences =
false);
158 static std::vector<std::string>
161 SITK_RETURN_SELF_TYPE_HEADER
163 const std::vector<PathType> &
167 SITK_RETURN_SELF_TYPE_HEADER
189 std::vector<std::string>
219 template <
class TImageType>
274 const std::string & imageIO =
"");
itk::ProcessObject * m_Filter
std::string ToString() const override
Self & SetMetaDataDictionaryArrayUpdate(bool metaDataDictionaryArrayUpdate)
std::function< bool(int, const std::string &)> m_pfHasMetaDataKey
Image ExecuteInternal(itk::ImageIOBase *)
std::string GetName() const override
bool HasMetaDataKey(unsigned int slice, const std::string &key) const
Query a meta-data dictionary for the existence of a key.
Self & MetaDataDictionaryArrayUpdateOn()
std::vector< std::string > GetMetaDataKeys(unsigned int slice) const
Get the meta-data dictionary keys for a slice.
Image(Self::* MemberFunctionType)(itk::ImageIOBase *)
double m_SpacingWarningRelThreshold
static std::vector< std::string > GetGDCMSeriesIDs(const PathType &directory, bool useSeriesDetails=false)
Get all the seriesIDs from a DICOM data set.
bool GetMetaDataDictionaryArrayUpdate()
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
std::function< std::vector< std::string >(int)> m_pfGetMetaDataKeys
bool m_MetaDataDictionaryArrayUpdate
double GetSpacingWarningRelThreshold() const
Self & MetaDataDictionaryArrayUpdateOff()
const std::vector< PathType > & GetFileNames() const
std::string GetMetaData(unsigned int slice, const std::string &key) const
Get the value of a meta-data dictionary entry as a string.
std::function< std::string(int, const std::string &)> m_pfGetMetaData
std::vector< PathType > m_FileNames
Self & SetFileNames(const std::vector< PathType > &fileNames)
Self & SetSpacingWarningRelThreshold(double spacingWarningRelThreshold)
~ImageSeriesReader() override
static std::vector< PathType > GetGDCMSeriesFileNames(const PathType &directory, const std::string &seriesID="", bool useSeriesDetails=false, bool recursive=false, bool loadSequences=false)
Generate a sequence of filenames from a directory with a DICOM data set and a series ID.
The Image class for SimpleITK.
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.