GDCMSCANNER(1)
π GDCMSCANNER β the DICOM scanner that eats
okay bestie so the manual name here is literally DICOM Manipulation, and this page is about gdcmscanner, and i need you to understand: this tool is that girl. she walks a whole directory of DICOM files and pulls values out of a DICOM File-Set fast. no cap. π
β¨ NAME β¨
gdcmscanner β scan a directory containing DICOM files. that's it. that's the job. π
πΈ SYNOPSIS πΈ
gdcmscanner [options] directory
π¦ DESCRIPTION π¦
okay so gdcmscanner is a command line tool β an iconic one β built to quickly extract value from a set of DICOM attributes in a DICOM File-Set. she's efficient, she's fast, she's not here for your nonsense. π
π PARAMETERS π
the actual meaty bits you're feeding her:
-d,--dirβ the DICOM directory. like, where the files live. your girl needs a location.-t,--tag %d,%dβ the DICOM tag(s) to look for. formatted%d,%d, iykyk.-k,--keyword %sβ the DICOM keyword(s) to look for.%sstyle, name-based instead of number-based, obsessed.-P,--private-tag %d,%d,%sβ the DICOM private tag(s) to look for, and yeah it takes that extra third%spiece because private tags are extra like that.
π OPTIONS π
the vibe knobs:
-p,--printβ print output. yes bestie we want to see it.-r,--recursiveβ recursively descend the directory. go deeper. go off.--strictβ use the strict parser β faster, but less tolerant with bogus DICOM files. so like, if your files are messy she will NOT be forgiving. π--tableβ use Table output. cute little table. very demure.
π general options π
the housekeeping squad:
-h,--helpβ print this help text and exit.-v,--versionβ print version information and exit.-V,--verboseβ verbose mode (warning+error).-W,--warningβ warning mode, print warning information.-E,--errorβ error mode, print error information.-D,--debugβ debug mode, print debug information.
π₯ TYPICAL USAGE π₯
π SIMPLE USAGE π
so you wanna display all the values for Patient Name (0010,0010) in the directory named gdcmData? simply do:
$ gdcmscanner -t 10,10 -d gdcmData -p
and for a private tag, simply do:
$ gdcmscanner -P "0029,60,SIEMENS MEDCOM HEADER2" -d gdcmData -p
look at her go. slay. π
β TABLE USAGE β
you want it as CSV (see dicom3tools/dctable) with all the values for SOP Instance / Study Instance / Series Instance UID(s) in the directory named gdcmData? simply do:
$ gdcmscanner -k SOPInstanceUID -k StudyInstanceUID -k SeriesInstanceUID -d gdcmData -p --table
three -k flags, three keywords, one gorgeous table. π«Ά
π§ COMPLEX USAGE π§
okay real talk β because gdcmscanner does not support progress, you have to wait until all the files are traversed before you see any results. which is, ngl, quite cumbersome. on UNIX you can work around it with the following trick:
$ find gdcmData -type d -exec gdcmscanner -t 10,10 -d {} -p ';'
so all directories are locally traversed (no child directory is recursively traversed), which means results come out much faster. main character workaround energy. πβ¨
π SEE ALSO π
dctable(1), gdcmdump(1), gdcmraw(1) β go give them a look, bestie.
π AUTHOR π
Mathieu Malaterre β Main developer
πΈ COPYRIGHT πΈ
Copyright Β© 2006, 2011 Mathieu Malaterre
ok that's the whole page, every flag, every example, every word, no skips. π
and finally, the cute lil sign-off at the bottom of the page says: this is from GDCM 3.0.24, dated 12/25/2025 β so like, merry christmas from the GDCM girlies, mwah ππ¦π
π¦ where this page comes from
- opensuse-leap 16.0: gdcm-applications 3.0.24-bp160.2.1 Β· BSD-3-Clause
- opensuse-leap 16.0: gdcm-applications 3.0.24-bp160.2.1 Β· BSD-3-Clause
- opensuse-leap 16.0: gdcm-applications 3.0.24-bp160.2.1 Β· BSD-3-Clause
- opensuse-leap 16.0: gdcm-applications 3.0.24-bp160.2.1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms