Personal tools
You are here: Home cmgui Wiki dicom
Views
dicom copied.
FrontPage >>

dicom

last edited 2 weeks ago by pbier

An MRI or CT scan produces a series of dicom images. These usually have the file extension .ima or .dcm

For a good introduction to the dicom format see: http://www.sph.sc.edu/comd/rorden/dicom.html

Dicom images usually require specialised software to read and display them. Cmgui can read dicom images in and use them to create volume textures. You can indicate an image is of dicom format by using dcm :

   # read in mri data and create a volume texture
   gfx create texture tract image dcm:images/BIER_Peter_3_000.ima number_pattern 000 number_series 7 262 1 width 1 height 1 depth 1 distortion 0 0 0 colour 0 0 0 alpha 0 decal linear_filter resize_nearest_filter clamp_wrap;

If on a unix machine Image Magick should be able to convert a dicom file into another graphics format, using the convert command, although it does not seem to work on 16 bit images. If on a windows machine the DCM2JPG console application is very useful for converting to jpg. http://www.sph.sc.edu/comd/rorden/ezdicom.html#console It is free to download.

You can also convert or view a dicom image on a unix machine by using xmedcon (or medcon). This can be downloaded from http://xmedcon.sourceforge.net/Main/HomePage

Note that the dicom format stores header information within the file as while as the captured image. Image Magick can be used to extract some header information by using the identify option with the convert command :

   convert -identify bob.dcm bob.jpg

If you are using a Mac, the software OsiriX can be used to view dicom images. You can also browse the dicom header metadata.

Contributing to this site

Please add to the wiki any relevant information that you think might be useful to other users of this website. For example, you might like to contribute your experiences, questions and answers.

You are encouraged to contribute to this site regardless of your level of experience. Contributions are welcomed from new and regular visitors.

If you ask a question and receive an answer from a developer you should record it in the wiki. This information is extremely useful and can help other users overcome the same problem.

See how to add and edit pages for more information.