DICOMFIND(1)
π DICOMFIND π
ok bestie, this is DICOMFIND(1), a User Commands situation, and honestly? she's giving "UNIX find but make it β¨medical imagingβ¨". no cap. π©»π
πΈ NAME πΈ
dicomfind β the vtk-dicom CLI π
β¨ DESCRIPTION β¨
π«Ά usage:
dicomfind [options] <directory> ...
π options:
here's the whole menu, every single one, no skipping, periodt:
-Lβ Follow symbolic links (this is the default, she does it anyway).-Pβ Do not follow symbolic links.-k tag=valueβ Give her an attribute to query and match on.-q <query.txt>β Hand her a file that describes the find query.-u <uids.txt>β Hand her a file containing a list of UIDs.-maxdepth nβ Set the maximum directory depth.-name patternβ Set a pattern to match, with"*"or"?".-imageβ Restrict the search to files that havePixelData.-seriesβ Find all files in a series if even one file matches.-printβ Print the filenames of all matched files (default behaviour, she's chill like that).-print0β Print the filenames with a terminating null, forxargsbesties.-exec ... +β Execute the given command for every series matched.-exec ... \;β Execute the given command for every file matched.-execdir ... +β Go to the directory and execute the command on every series.-execdir ... \;β Go to the directory and execute the command on every file.--directory-onlyβ Do not scan the files themselves if aDICOMDIRis present.--ignore-dicomdirβ Ignore theDICOMDIRfile even if it is present.--charset <cs>β Charset to use ifSpecificCharacterSetis missing.--helpβ Print a brief help message.--versionβ Print the software version.
okay so the way this works is iconic actually: this command is like the UNIX "find" command, but for DICOM files. π¦
When you're searching for files with a specific attribute (with -k), the tag can be in its hexadecimal form GGGG,EEEE or in its keyword form Modality=MR. Or, alternatively, the tags can be listed in a query file with the -q option β one tag per line, no stress. π Attributes nested within sequences can be specified by giving a tag path like -k Tag1/Tag2/Tag3. Either a forward slash or a backslash can separate the components of the path, she's flexible like that. π Private tags should be preceded by the private dictionary name in square brackets. π
The -exec and -execdir arguments cause dicomfind to run the specified program on the found files. For example, to dump each file one would use -exec dicomdump {} \; β where each instance of {} gets replaced by a found file, and ; indicates the end of the args to dicomdump. π« Alternately, if + is used to end the args, then the program will be run on each DICOM series and {} will be replaced by all files in the series. The -execdir argument is similar, except that it runs the program from within the directory of the file (or files), and {} is replaced by just the filenames instead of the full paths. π
bestie pls note: the difference between+and\;is not a vibe check, it genuinely changes what{}expands to and how many times your command runs. respect the semicolon. π
π AUTHOR π
This manual page was written by Mathieu Malaterre <malat@debian.org> for the Debian GNU/Linux system, but may be used by others. π
and that's the whole page, bestie β sourced from dicomfind 0.8.17, dated August 2026, manual page DICOMFIND(1). slay, go find some DICOM files. π«Άπ
π¦ 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