dcm2img(1) OFFIS DCMTK dcm2img(1) (NAME) dcm2img - DICOM (SYNOPSIS) dcm2img [] dcmfile-in [bitmap-out] (DESCRIPTION) dcm2img (DICOM) : BMP PGM/PPM PNG TIFF JPEG JPEG-LS. JPEG JPEG-LS RLE . (PARAMETERS) dcmfile-in DICOM ("-" stdin) bitmap-out (: stdout) (OPTIONS) (general options) -h --help --version --arguments -q --quiet -v --verbose -d --debug -ll --log-level [l]evel: string constant (fatal, error, warn, info, debug, trace) l -lc --log-config [f]ilename: string f (input options) : +f --read-file () +fo --read-file-only -f --read-dataset : -t= --read-xfer-auto TS () -td --read-xfer-detect TS -te --read-xfer-little TS VR little endian -tb --read-xfer-big TS VR big endian -ti --read-xfer-implicit TS VR little endian (image processing options) : +F --frame [n]umber: integer (: 1) +Fr --frame-range [n]umber [c]ount: integer c n +Fa --all-frames : +Rl --rotate-left (- ) +Rr --rotate-right (+ ) +Rtd --rotate-top-down ( ) (): +Lh --flip-horizontally +Lv --flip-vertically +Lhv --flip-both-axes : +a --recognize-aspect () -a --ignore-aspect +i --interpolate [n]umber of algorithm: integer (1..4 : 1) -i --no-interpolation -S --no-scaling () +Sxf --scale-x-factor [f]actor: float x f y +Syf --scale-y-factor [f]actor: float y f x +Sxv --scale-x-size [n]umber: integer x n y +Syv --scale-y-size [n]umber: integer y n x ( JPEG): +cp --conv-photometric YCbCr () +cl --conv-lossy YCbCr RGB JPEG (lossy) +cg --conv-guess RGB YCbCr +cgl --conv-guess-lossy RGB JPEG YCbCr JPEG +ca --conv-always YCbCr RGB +cn --conv-never : +bs --bits-stored-fix (BitsStored) () # BitsStored # DICOM # ( JPEG) -bs --bits-stored-keep (BitsStored) # BitsStored # . # ( JPEG) ( JPEG): +w6 --workaround-pred6 JPEG # DICOM # JPEG # # () . # # # . . +wi --workaround-incpl JPEG # dcm2img JPEG # # ( ) . # JPEG . +wc --workaround-cornell JPEG (Cornell) # JPEG # "Cornell" # # . # . modality LUT: -M --no-modality modality LUT +M --use-modality modality LUT () VOI LUT: -W --no-windowing VOI () +Wi --use-window [n]umber: integer n- VOI +Wl --use-voi-lut [n]umber: integer n- VOI (VOI LUT) +Wm --min-max-window VOI min-max +Wn --min-max-window-n VOI min-max () +Wr --roi-min-max-window [l]eft [t]op [w]idth [h]eight: integer ROI min-max l,t,w,h +Wh --histogram-window [n]umber: integer VOI n +Ww --set-window [c]enter [w]idth: float VOI c w +Wfl --linear-function VOI LUT LINEAR () +Wfs --sigmoid-function VOI LUT SIGMOID () presentation LUT: +Pid --identity-shape presentation LUT IDENTITY +Piv --inverse-shape presentation LUT INVERSE +Pod --lin-od-shape presentation LUT LIN OD ( ): -O --no-overlays () +O --display-overlay [n]umber: integer n ( 0..16 0= : +O 0) +Omr --ovl-replace "Replace" () ( ) +Omt --ovl-threshold "Threshold Replace" ( ) +Omc --ovl-complement "Complement" () +Omv --ovl-invert "Invert Bitmap" ( ) +Omi --ovl-roi "Region of Interest" ( ) ( ROI) +Osf --set-foreground [d]ensity: float (0..1 : 1) +Ost --set-threshold [d]ensity: float (0..1 : 0.5) display LUT: +Dm --monitor-file [f]ilename: string f +Dp --printer-file [f]ilename: string f +Da --ambient-light [a]mbient light: float (cd/m^2 : f) +Di --illumination [i]llumination: float (cd/m^2 : f) +Dn --min-density [m]inimum optical density: float Dmin (: +Dp) +Dx --max-density [m]aximum optical density: float Dmax (: +Dp) +Dg --gsd-function GSDF ( +Dm/+Dp) +Dc --cielab-function CIELAB : +Ma --accept-acr-nema ACR-NEMA +Mp --accept-palettes (0028,111x) (0028,121x) +Mc --check-lut-depth LUT LUT +Mm --ignore-mlut-depth modality LUT +Mv --ignore-vlut-depth VOI LUT TIFF: +Tl --compr-lzw LZW () +Tr --compr-rle RLE +Tn --compr-none +Pd --predictor-default LZW () +Pn --predictor-none LZW ( ) +Ph --predictor-horz LZW ( ) +Rs --rows-per-strip [r]ows: integer (default: 0) (strip) 8K PNG: +il --interlace / () -il --nointerlace +mf --meta-file PNG () -mf --meta-none PNG JPEG: +Jq --compr-quality [q]uality: integer (0..100, default: 90) ( ) +Js4 --sample-444 4:4:4 ( ) +Js2 --sample-422 4:2:2 ( ) +Js1 --sample-411 4:1:1 ( ) JPEG-LS: +Trl --rendered-lossless () +Tll --true-lossless +f8 --force-8-bit ( --true-lossless ) : +G --grayscale () +P --change-polarity ( ) +C --clip-region [l]eft [t]op [w]idth [h]eight: integer (l, t, w, h) (output options) : -im --image-info ( ) -o --no-output ( -im) ( --frame-range --all-frames): +Fc --use-frame-counter () +Fn --use-frame-number : +oa --write-auto ( ) # / # BMP ( --write-bmp). +op --write-raw-pnm PGM/PPM +opb --write-8-bit-pnm PGM/PPM (ASCII) ( stdout) +opw --write-16-bit-pnm PGM/PPM (ASCII) +opn --write-n-bit-pnm [n]umber: integer PGM/PPM (ASCII) n (1..32) +ob --write-bmp BMP () () +obp --write-8-bit-bmp BMP ( ) +obt --write-24-bit-bmp BMP (truecolor) +obr --write-32-bit-bmp BMP (truecolor) +ot --write-tiff TIFF () () +on --write-png PNG () () +on2 --write-16-bit-png PNG () () +oj --write-jpeg JPEG (baseline) +ol --write-jpls JPEG-LS (NOTES) --interpolate : o 1 = pbmplus o 2 = c't o 3 = (bilinear) Eduard Stanescu o 4 = (bicubic) Eduard Stanescu --write-tiff DCMTK TIFF libtiff . TIFF libtiff . --write-png DCMTK PNG libpng . --interlace PNG . (TEXT) PNG . (TRANSFER SYNTAXES) dcm2img (dcmfile-in) : LittleEndianImplicitTransferSyntax 1.2.840.10008.1.2 LittleEndianExplicitTransferSyntax 1.2.840.10008.1.2.1 DeflatedExplicitVRLittleEndianTransferSyntax 1.2.840.10008.1.2.1.99 (*) BigEndianExplicitTransferSyntax 1.2.840.10008.1.2.2 JPEGLSLosslessTransferSyntax 1.2.840.10008.1.2.4.80 JPEGLSLossyTransferSyntax 1.2.840.10008.1.2.4.81 JPEGProcess10_12TransferSyntax 1.2.840.10008.1.2.4.55 JPEGProcess14SV1TransferSyntax 1.2.840.10008.1.2.4.70 JPEGProcess14TransferSyntax 1.2.840.10008.1.2.4.57 JPEGProcess1TransferSyntax 1.2.840.10008.1.2.4.50 JPEGProcess2_4TransferSyntax 1.2.840.10008.1.2.4.51 JPEGProcess6_8TransferSyntax 1.2.840.10008.1.2.4.53 RLELosslessTransferSyntax 1.2.840.10008.1.2.5 (*) zlib (LOGGING) . . --verbose . --debug . --log-level . --quiet . . "oflog" . ( ) syslog () event log () --log-config . . /logger.cfg . (COMMAND LINE) : (-) (-n) n . '+' '-' . ( ). . . '@' ( @command.txt). ( ). . / ( /dumppat.txt ). (ENVIRONMENT) dcm2img DICOM DCMDICTPATH . DCMDICTPATH /dicom.dic ( ). DCMDICTPATH . DCMDICTPATH PATH (":") . - (";") . DCMDICTPATH . . (FILES) /camera.lut - /monitor.lut - /printer.lut - /scanner.lut - (SEE ALSO) img2dcm(1) (COPYRIGHT) Copyright (C) 2001-2025 by OFFIS e.V., Escherweg 2, 26121 Oldenburg, Germany. Version 3.7.0 Thu Jul 9 2026 18:43:40 dcm2img(1)