[Insight-users] Dicom to mhd spacing problem

Luis Ibanez luis.ibanez at kitware.com
Sun Dec 31 09:21:57 EST 2006



Hi Michael,

ITK (actually GDCM) computes the Z spacing between sliced by using
the position of two consecutive slices, not by grabbing the value
from the DICOM header.


For details you may want to look at:


    Insight/Code/IO/itkGDCMImageIO.cxx line 504:

       m_Spacing[2] = header->GetZSpacing();


and


    Insight/Utilities/gdcm/gdcmFile.cxx  line 590:

          GetZSpacing() method



Regards,



     Luis


----------------------
Michael Baltaxe wrote:
> Hi,
> 
> I used the example DicomSeriesReadImageWrite2.cxx to convert a Dicom 
> directory to an mhd image. I found that the spacing in the Z direction 
> was modified from 1.25 to 0.8. Could someone please enlighten me on this?
> 
> Thanks for your help.
> 
> Michael.
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users


More information about the Insight-users mailing list