DICOM Extended Example


The DICOM example converts a list of DICOM files (.dcm) to ASCII files (.g4dcm) that can be read by Geant4. The text files contain Hounsfield numbers describing a CT-calibration phantom (PhantomCT.jpg) and are converted to densities according to a conversion table provided in the file CT2density.dat (scanner specific). A Geant4 geometry is then created for the phantom using the G4PhantomParameterisation class.

The example is located in the geant4/examples/extended/medical/DICOM tree. The following files can be found in the DICOM directory:

File Content
Data.dat it contains the input information for reading DICOM files
dicom.cc main
PhantomCT.jpg image of the phantom used for CT calibration, that is the same of the DICOM images
vis.mac macro file for visualisation using OpenGL
Colourmap.dat it defines the colour of the different DICOM materials
README information on hiw to run the example (Read it first!!!)
CT2Density.dat calibration of HU into materials using the phantom used for CT calibration
run.mac macro for batch mode


Monoenergetic beam of 6 MeV electrons impinging on a phantom
modelised with the DICOM interface of the DICOM extended example

Known problems

A patch will be delivered soon to solve the compiling problem of the DICOM Extended example as reported in Bugzilla

If you want to use it now follow the instruction reported here to solve the problem:

  1. copy G4RegNavHelper.cc in source/geometry/navigation/src
  2. copy G4RegNavHelper.hh in source/geometry/navigation/include
  3. copy G4Regularnavigation.cc in source/geometry/navigation/src

compile the Geant4 source code and go back to the DICOM Extended example. Now it will work.

Main DICOM page

Main Medical Physics page

Stéphane Chauvie - 19 Feb 2009
Edit | Attach | Watch | Print version | History: r10 | r8 < r7 < r6 < r5 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r6 - 2009-06-13 - ChristinaZacharatou
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Geant4 All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback