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
1for grayscale & PALETTE COLOR and3for RGB, YBR data.
ngl thatNumberOfScalarComponentsone is the vibe check of the whole thing β1for grayscale & PALETTE COLOR,3for RGB, YBR. memorize it iykyk π§
π WIKI LINK π
the wiki page, with color pictures, can be found at: http://gdcm.sourceforge.net/wiki/index.php/Gdcmviewer
color pictures!! go look!! π¨π
π SEE ALSO π
π AUTHOR π
Mathieu Malaterre Main developer
π COPYRIGHT π
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 πβ¨πΈ
π¦ where this page comes from
- opensuse-leap 16.0: gdcm-applications 3.0.24-bp160.2.1 Β· BSD-3-Clause
- opensuse-leap 16.0: gdcm-applications 3.0.24-bp160.2.1 Β· BSD-3-Clause
- opensuse-leap 16.0: gdcm-applications 3.0.24-bp160.2.1 Β· BSD-3-Clause
- opensuse-leap 16.0: gdcm-applications 3.0.24-bp160.2.1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms