ShapeWorks
ShapeWorks copied to clipboard
Get the DICOM Series ID
Could we add something like this to readDICOMImage
to access DICOM series ID?
PixelType = itk.ctype('signed short')
Dimension = 3
ImageType = itk.Image[PixelType, Dimension]
namesGenerator = itk.GDCMSeriesFileNames.New()
namesGenerator.SetUseSeriesDetails(True)
namesGenerator.AddSeriesRestriction("0008|0021")
namesGenerator.SetGlobalWarningDisplay(False)
namesGenerator.SetDirectory(dirName)
seriesUID = namesGenerator.GetSeriesUIDs()
https://examples.itk.org/src/io/gdcm/readdicomseriesandwrite3dimage/documentation