Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get the DICOM Series ID #2317

Open
iyerkrithika21 opened this issue Aug 27, 2024 · 0 comments
Open

Get the DICOM Series ID #2317

iyerkrithika21 opened this issue Aug 27, 2024 · 0 comments

Comments

@iyerkrithika21
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant