GDCM2PNM(1)

πŸ’– GDCM2PNM πŸ’–

okay so bestie, welcome to gdcm2pnm, straight out of the DICOM Manipulation corner of the manual-verse πŸŽ€ yes that's the manual name, i'm folding it in right at the top because we're cute like that.


✨ NAME ✨

gdcm2pnm β€” off-screen rendering of DICOM images πŸ–ΌοΈ


✨ SYNOPSIS ✨

gdcm2pnm [options] file-in bitmap-out

✨ DESCRIPTION ✨

so basically, the gdcm2pnm command line program takes as input a DICOM file and produces a rendered bitmap file. that's it. that's the whole vibe. input goes in, pretty picture comes out πŸ’…βœ¨


✨ PARAMETERS ✨

  • file-in β€” DICOM input filename
  • bitmap-out β€” Bitmap output filename

✨ OPTIONS ✨

specific options

okay so there are literally no specific options listed here 😭 like the section exists but it's empty, that's just how the page is, don't come for me πŸ™ˆ

general options

  • -h, --help β€” print this help text and exit 🫢 classic.
  • -v, --version β€” print version information and exit ⭐
  • -V, --verbose β€” verbose mode (warning+error). not me flipping this on to see what's actually going on πŸ‘€
  • -W, --warning β€” warning mode, print warning information 🌸
  • -E, --error β€” error mode, print error information πŸ’€
  • -D, --debug β€” debug mode, print debug information πŸ”₯ main character energy for the terminal

✨ SIMPLE USAGE ✨

gdcm2pnm will take as input DICOM and render it into a bitmap file using the window/level attributes value. iykyk 🌈

$ gdcm2pnm input.dcm output.png

and here's the tea β˜•: it is much different from the gdcmraw or gdcmimg command line tool as it will render a DICOM image. this means that the output will be rendered in 8bits ready for display. literally display-ready, no cap πŸ’–

bestie pls don't mix this up with gdcmraw or gdcmimg β€” those are the other girlies, this one renders. πŸ‘‘

✨ SEE ALSO ✨


✨ AUTHOR ✨

Mathieu Malaterre

  • Main developer πŸ‘‘

Copyright Β© 2006, 2011 Mathieu Malaterre


okay that's the whole page, ty for coming to my ted talk πŸ¦‹ and a lil sign-off for the record: this is GDCM 3.0.24, dated 12/25/2025 β€” merry everything, go render something iconic πŸ’…πŸŽ€