[Insight-users] GDCM problems

Ranjan, Sohan (GE, Research) sohan.ranjan at ge.com
Mon Jul 17 07:22:52 EDT 2006


I have another related question regarding DICOM reading. I am reading 
a DICOM volume data from a single file. I do not understand why the DICOM
reader shows the Z-spacing to be negative. Is it normal? But atleast
the results are not. A negative value for spacing is making all the 
computations wrong.

-----Original Message-----
From: Mathieu Malaterre [mailto:mathieu.malaterre at kitware.com]
Sent: Thursday, July 13, 2006 10:40 PM
To: Ranjan, Sohan (GE, Research)
Cc: insight-users at itk.org
Subject: Re: [Insight-users] GDCM problems


Ranjan, Sohan (GE, Research) wrote:
> Hello.
> 
> I had written code for registering images in DICOM format. The code worked well with ITK-2.4.
> However I switched over to ITK-2.6, and then my code went erratic. What I have noticed is
> that the problem is coming due to origin of the read image. If a DICOM image read by ITK-2.4
> read the origin as, say (X,Y,Z), the same image origin read by ITK-2.6 reports it as (X, -Y, Z).
> Note the change in the sign of the y-corodinate. With this change, the corresponding points 
> in the two image being registered becomes different, thus the whole MI computation goes
> haywire, and registration fails. 
> I am sure many would have faced the same problem, so what is the solution?

Ranjan,

    If you have a chance, could you try again with ITK CVS. I removed 
something that has been discussed for a while about this issue. I 
believe this would solve your problem.

Thanks
Mathieu


More information about the Insight-users mailing list