OS Manuals

/usr/bin/dcmp2pgm

DCMTK is a collection of libraries and applications implementing large parts the DICOM standard.

From dcmtk 3.7.1-r0 (os), captured 2026-11-05 by running dcmp2pgm --help (exit 0). permalink

$dcmtk: dcmp2pgm v3.7.1 2026-10-15 $

dcmp2pgm: Read DICOM image and presentation state and render bitmap
usage: dcmp2pgm [options] dcmfile-in [bitmap-out]

parameters:
  dcmfile-in          input DICOM image ("-" for stdin)
  bitmap-out          output DICOM image or PGM bitmap

general options:
  -h   --help         print this help text and exit
       --version      print version information and exit
       --arguments    print expanded command line arguments
  -q   --quiet        quiet mode, print no warnings and errors
  -v   --verbose      verbose mode, print processing details
  -d   --debug        debug mode, print debug information
  -ll  --log-level    [l]evel: string constant
                      (fatal, error, warn, info, debug, trace)
                      use level l for the logger
  -lc  --log-config   [f]ilename: string
                      use config file f for the logger
processing options:
  -p   --pstate       [f]ilename: string
                      process using presentation state file
  -c   --config       [f]ilename: string
                      process using settings from configuration file
  -f   --frame        [f]rame: integer
                      process using image frame f (default: 1)
output format:
  -D   --pgm          save image as PGM (default)
  +D   --dicom        save image as DICOM secondary capture
output options:
  +S   --save-pstate  [f]ilename: string
                      save presentation state to file
Options (12)
OptionDescriptionSource
-h--help print this help text and exithelp
--versionprint version information and exithelp
--argumentsprint expanded command line argumentshelp
-q--quiet quiet mode, print no warnings and errorshelp
-v--verbose verbose mode, print processing detailshelp
-d--debug debug mode, print debug informationhelp
-ll--log-level [l]evel: string constant (fatal, error, warn, info, debug, trace) use level l for the loggerhelp
-lc--log-config [f]ilename: string use config file f for the loggerhelp
-p--pstate [f]ilename: string process using presentation state filehelp
-c--config [f]ilename: string process using settings from configuration filehelp
-f--frame [f]rame: integer process using image frame f (default: 1)help
-D--pgm save image as PGM (default)help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.