Home > Dicom2Volume

Dicom2Volume

Dicom2Volume is a project mainly written in C#, based on the BSD-3-Clause license.

Dicom2Volume (C# application/library) Loads DICOM files and extracts image data, orientation, positions, scale and metadata like WindowLevel. DICOM slices are sorted based on calculated SliceLocation and image and metadata is exported to XML, RAW and


Dicom2Volume (C# application/library)


Loads DICOM files and extracts image data, orientation, positions, scale and metadata like WindowLevel. DICOM slices are sorted based on calculated SliceLocation and image and metadata is exported to XML, RAW and DDS (Direct Draw Surface - ideal for Direct3D loading). Optional tar.gz compression can also be applied. Ideal if you want the simplest way of working with volume medical data without the hassle of DICOM. Can be used as standalone application or as a library.


Example volume metadata:

<?xml version="1.0" ?>

512 512 361 217 217 252 400 60 -1000 1 1 0 0 0 1 0 -112 -17.333334 -792 -792 -540 0 4095

The idea is that this data is everything needed to successfully perform volume rendering of the DICOM dataset. Currently only MONOCHROME2 Photometric Interpretation is supported. However decompression is supported through external converters like dcmtk and gdcm. The process also anonymizes the data by ignoring all tags not relating to rendering.


Configuration options are found in dcm2vol.exe.config. Here is an example config with commented out sections showing how external DICOM converters could be integrated.