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 ifSpecificCharacterSetis missing.--images-onlyβ only list files that havePixelDataor 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
- ubuntu stonking: vtk-dicom-tools 0.8.17-3build1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms