DICOMTOCSV(1)

πŸ‘‘ NAME ✨

dicomtocsv β€” it's a vtk-dicom CLI thing, bestie πŸ’…


🌸 DESCRIPTION ✨

okay so basically this is the dicomtocsv command from vtk-dicom, and she is serving πŸ’–

🌈 usage:

dicomtocsv [options] <directory>

πŸ’« options:

  • -k tag=value β€” hand her a tag or key that you wanna query and match on. πŸŽ€
  • -q <query.txt> β€” give her a file that describes the find query.
  • -u <uids.txt> β€” give her a file with a list of UIDs in it.
  • -o <data.csv> β€” the file where the query results go.
  • -maxdepth n β€” sets the max directory depth for the search, periodt.
  • --default β€” adds to the default query instead of straight-up replacing it.
  • --first-nonzero β€” searches each series for the first nonzero value of every key.
  • --all-unique β€” reports every unique value found inside each series.
  • --min-value β€” reports the minimum value within each series.
  • --max-value β€” reports the maximum value within each series.
  • --directory-only β€” do not scan files if a DICOMDIR is present.
  • --ignore-dicomdir β€” ignore the DICOMDIR file even if it is there, no cap πŸ™ˆ
  • --charset <cs> β€” the charset to use if SpecificCharacterSet is missing.
  • --images-only β€” only list files that have PixelData or the equivalent.
  • --noheader β€” do not print the csv header.
  • --study β€” print one row for each study.
  • --series β€” print one row for each series (this is the default, she's the main character πŸ‘‘).
  • --image β€” print one row for each image.
  • --silent β€” do not report any progress information. shhh 🀫
  • --help β€” print a brief help message.
  • --version β€” print the software version.

so what she actually does: dumps selected metadata out of a DICOM directory and into a csv file. iconic behaviour fr fr πŸ¦‹

for every attribute you wanna extract, you can pass the tag with -k, and you can repeat that -k option as many times as you need β€” go off, spam it πŸ’… tags can be given in hexadecimal GGGG,EEEE format, or in text format as specified in the DICOM dictionary key. or, alternately, you can list all the tags in a query file that you hand over with the -q option, one tag per line. πŸ“

and listen β€” attributes nested inside sequences? you can specify those with a tag path, like -k Tag1/Tag2/Tag3. either a forward slash or a backslash can separate the components of that path, whichever vibe you're feeling. private tags should be preceded by the private dictionary name in square brackets. πŸŽ€

now here's the tea πŸ«– if the same tag shows up more than once with -k β€” or if it's listed multiple times in the query file, or it appears in both the query file and as a -k option β€” then its first appearance sets the column number that it appears in. also, as far as the search goes, the value specified in the final appearance of the tag as an option is the value that gets used for the search. yes bestie, first one picks the column, last one picks the search value. that's just how she is πŸ’€

and if you specify no attributes at all with either -k or -q, then a default set of query attributes gets used. she's got you covered either way πŸ’–


🫢 AUTHOR ✨

this manual page was written by Mathieu Malaterre <malat@debian.org> for the Debian GNU/Linux system, but it may be used by others. shoutout to him, absolute legend 🌟


and that's the whole page bestie, no notes πŸ’… this was dicomtocsv version 0.8.17, dated August 2026, from the DICOMTOCSV(1) manual β€” slay, go query some DICOMs πŸ”₯βœ¨πŸ’œ

πŸ“¦ where this page comes from