GDCMVIEWER(1)

πŸ’– gdcmviewer β€” the DICOM viewer moment

okay so this is the manual for gdcmviewer, straight out of the DICOM Manipulation manual pages (section 1, bestie, we're in the big leagues). pull up a chair πŸŽ€


✨ NAME ✨

gdcmviewer β€” a simple DICOM viewer. that's it. that's the whole vibe. πŸ¦‹


🌸 SYNOPSIS 🌸

gdcmviewer [options] file-in

literally just options and a file. slay.


πŸ’… DESCRIPTION πŸ’…

okay so gdcmviewer is a simple little tool that shows you how to use vtkGDCMImageReader. it's the class that uses gdcm to make a layer to VTK. and honestly? gdcmviewer is basically only just a wrapper around VTK/GDCM. no cap. 🫢

this tool is meant for testing the integration of GDCM in VTK β€” you should see it as a demo tool, fr fr. it does compile with VTK ranging from 4.2 to 5.10, but ⚠️ only with VTK 5.2 (or above) can you play with the widgets (as described below). so like… know your VTK version, bestie πŸ’€


πŸ“ PARAMETERS πŸ“

  • file-in β€” DICOM input filename

✨ OPTIONS ✨

πŸŽ€ specific options

  • --force-rescale β€” force rescale (for the advanced users only πŸ‘‘)
  • --force-spacing β€” force spacing (again… advanced users πŸ‘‘)
  • -r, --recursive β€” Recursively descend directory 🌈

πŸ¦‹ general options

  • -h, --help β€” print this help text and exit
  • -v, --version β€” print version information and exit
  • -V, --verbose β€” verbose mode (warning+error).
  • -W, --warning β€” warning mode, print warning information
  • -E, --error β€” error mode, print error information
  • -D, --debug β€” debug mode, print debug information

πŸ”₯ TYPICAL USAGE πŸ”₯

πŸ’œ SIMPLE USAGE

for now, gdcmviewer should be started from a command line prompt (she's old school like that πŸ’…). the next argument should be the name of the DICOM file you wish to read. for instance:

$ gdcmviewer -V 012345.002.050.dcm

gdcmviewer will try to read your file, and then print the vtk information associated with this file. basically it tells you what kind of image you are looking at πŸ‘€βœ¨

  • ScalarType is the DICOM Real World Value type
  • Dimensions is the dimension of the image
  • Spacing is the spacing of the image
  • NumberOfScalarComponents should be 1 for grayscale & PALETTE COLOR and 3 for RGB, YBR data.
ngl that NumberOfScalarComponents one is the vibe check of the whole thing β€” 1 for grayscale & PALETTE COLOR, 3 for RGB, YBR. memorize it iykyk 🧚

the wiki page, with color pictures, can be found at: http://gdcm.sourceforge.net/wiki/index.php/Gdcmviewer

color pictures!! go look!! πŸŽ¨πŸ’–


πŸ’€ SEE ALSO πŸ’€

gdcmdump(1), gdcm2vtk(1)


πŸ‘‘ AUTHOR πŸ‘‘

Mathieu Malaterre Main developer


Copyright Β© 2006, 2011 Mathieu Malaterre


and that's the whole page, bestie 🫢 this was GDCM 3.0.24, dated 12/25/2025 β€” merry everything, go look at some DICOMs πŸ’–βœ¨πŸŒΈ