DICOM: Difference between revisions

From VrlWiki
Jump to navigation Jump to search
Jadrian Miles (talk | contribs)
New page: Files ending in <tt>'''.ima'''</tt> of <tt>'''.dcm'''</tt> are in the [http://medical.nema.org/ DICOM] medical image format. It is a widely used format that enjoyed grea...
 
Jadrian Miles (talk | contribs)
No edit summary
Line 1: Line 1:
Files ending in <tt>'''.ima'''</tt> of <tt>'''.dcm'''</tt> are in the [http://medical.nema.org/ DICOM] [[Diffusion MRI|medical image]] format.  It is a widely used format that enjoyed great popularity but, in the [[diffusion MRI]] community at least, has been mostly superseded by [[NIfTI]].
Files ending in <tt>'''.ima'''</tt> of <tt>'''.dcm'''</tt> are in the [http://medical.nema.org/ DICOM] [[Diffusion MRI|medical image]] format.  It is a widely used format that enjoyed great popularity but, in the [[diffusion MRI]] community at least, has been mostly superseded by [[NIfTI]].
== Matlab ==
Matlab has [http://www.mathworks.com/company/newsletters/digest/nov02/dicom.html extensive built-in support] for DICOM header and image data I/O with the [http://www.mathworks.com/access/helpdesk/help/toolbox/images/dicominfo.html <code>dicominfo</code>], [http://www.mathworks.com/access/helpdesk/help/toolbox/images/dicomread.html <code>dicomread</code>], and [http://www.mathworks.com/access/helpdesk/help/toolbox/images/dicomwrite.html <code>dicomwrite</code>] functions.  This is nice for quickly creating DICOM processing scripts to be run manually, but Matlab is relatively slow and difficult to call from non-interactive scripts.  Therefore it's encouraged to port Matlab code into another language (preferably C++ or Python) for inclusion in the [[diffusion processing pipeline]].
== Mosaic ==
One unusual storage strategy for DICOM-formatted medical images is the so-called "mosaic" scheme, in which a three-dimensional voxel volume is represented as a two-dimensional flat image.  The volume is divided up into X-Y slices which are then arranged in 2D like a tile floor, with Z increasing left to right, top to bottom.
=== Code ===
The following scripts to handle DICOM mosaic files can be found in <tt>[file:///map/gfx0/common0/diffusion/Interface/bin/data/ /map/gfx0/common0/diffusion/Interface/bin/data/]</tt>:
* <tt>processMosaics.m</tt> --- split all mosaic files matching a given pattern into DICOM and [[MRIimage]] files
* <tt>splitMosaic.m</tt> --- split a single mosaic file into a Matlab data array
* <tt>writeMosaicSlices.m</tt> --- write a collection of Matlab data volumes to DICOM and [[MRIimage]] files


== Useful Links ==
== Useful Links ==

Revision as of 19:11, 12 January 2009

Files ending in .ima of .dcm are in the DICOM medical image format. It is a widely used format that enjoyed great popularity but, in the diffusion MRI community at least, has been mostly superseded by NIfTI.

Matlab

Matlab has extensive built-in support for DICOM header and image data I/O with the dicominfo, dicomread, and dicomwrite functions. This is nice for quickly creating DICOM processing scripts to be run manually, but Matlab is relatively slow and difficult to call from non-interactive scripts. Therefore it's encouraged to port Matlab code into another language (preferably C++ or Python) for inclusion in the diffusion processing pipeline.

Mosaic

One unusual storage strategy for DICOM-formatted medical images is the so-called "mosaic" scheme, in which a three-dimensional voxel volume is represented as a two-dimensional flat image. The volume is divided up into X-Y slices which are then arranged in 2D like a tile floor, with Z increasing left to right, top to bottom.

Code

The following scripts to handle DICOM mosaic files can be found in /map/gfx0/common0/diffusion/Interface/bin/data/:

  • processMosaics.m --- split all mosaic files matching a given pattern into DICOM and MRIimage files
  • splitMosaic.m --- split a single mosaic file into a Matlab data array
  • writeMosaicSlices.m --- write a collection of Matlab data volumes to DICOM and MRIimage files

Useful Links