[Insight-users] itk3.14 itkGDCMImageIO.cxx and 2D images.

John Drescher drescherjm at gmail.com
Fri Jun 19 15:19:51 EDT 2009


When trying to write a 2D DICOM image I am getting a crash in

line 1957

1955:  image.SetSpacing(0, m_Spacing[0] );
1956:  image.SetSpacing(1, m_Spacing[1] );
1957:  image.SetSpacing(2, m_Spacing[2] );
1958:  image.SetOrigin(0, m_Origin[0] );
1959:  image.SetOrigin(1, m_Origin[1] );
1960:  image.SetOrigin(2, m_Origin[2] );


The problem is the vector m_Spacing is of size 2 and so m_Spacing[2]
is causing the crash. I assume m_Origin[2] is bad as well in line
1960.

I would file a bug report but I am not sure if this is fixed in cvs or not.

-- 
John M. Drescher


More information about the Insight-users mailing list