gdcmviewer - Simple DICOM viewer.
gdcmviewer [options] file-in
is a simple tool that show how to use
. The class that use gdcm to make a layer to VTK.
is basically only just a wrapper around VTK/GDCM.
This tool is meant for testing integration of GDCM in VTK. You should see it as
a demo tool. It does compile with VTK ranging from 4.2 to 5.10, but only with
VTK 5.2 (or above) can play with the widgets (as described below).
file-in DICOM input filename
--force-rescale force rescale (advanced users)
--force-spacing force spacing (advanced users)
-r --recursive Recusively descend directory
print this help text and exit
print version information and exit
verbose mode (warning+error).
warning mode, print warning information
error mode, print error information
debug mode, print debug information
For now gdcmviewer should be started from a command line prompt. 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 what kind of image you are looking at.
•ScalarType is the DICOM Real World
•Dimensions is the dimension of the
•Spacing is the spacing of the
•NumberOfScalarComponents should be 1
for grayscale & PALETTE COLOR and 3 for RGB, YBR data.
The wiki page, with color pictures can be found at:
Copyright © 2006, 2011 Mathieu Malaterre