[vtkusers] convert RAW format to DICOM

Mathieu Malaterre mathieu.malaterre at gmail.com
Fri Jun 5 10:09:17 EDT 2009


2009/6/1 x0_y0_0 <x0_y0_0 at 126.com>:
> hi,everyone,
>     I have a dataset of 3D RAW ,and its Parameters:  256*256*256; 16bits,
> effective bits are 12 bits. I want to convert it to 256 pieces DICOM image.
> Can VTK deal with it? Could anyone help me ?thanks

Either use gdcm2vtk directly or you can use vtkImageReader + vtkGDCMImageWriter.

ref:

http://gdcm.svn.sf.net/viewvc/gdcm/trunk/Utilities/VTK/Examples/Python/headsq2dcm.py?view=markup

and

http://apps.sourceforge.net/mediawiki/gdcm/index.php?title=Gdcm2vtk

HTH
-- 
Mathieu



More information about the vtkusers mailing list