ShapeWorks icon indicating copy to clipboard operation
ShapeWorks copied to clipboard

Get the DICOM Series ID

Open iyerkrithika21 opened this issue 6 months ago • 0 comments

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

iyerkrithika21 avatar Aug 27 '24 21:08 iyerkrithika21