From: malaterre Date: Mon, 11 Apr 2005 17:01:16 +0000 (+0000) Subject: BUG: Spacing in DICOM is y first THEN x spacing X-Git-Tag: Version1.2.bp~796 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=382ccb2da3319382d7e1f7296b937d60c63dee97;p=gdcm.git BUG: Spacing in DICOM is y first THEN x spacing --- diff --git a/ChangeLog b/ChangeLog index 9f9b46b5..44911c83 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-04-11 Mathieu Malaterre + * vtk/vtkGdcmWriter fix bug when writing spacing. The Y spacing comes first + then the X spacing. + 2005-04-05 Benoit Regrain * src/gdcmDictGroupName.[h|cxx] : add a correlation between a group (number) and it's representation name (for the NIH) diff --git a/vtk/vtkGdcmWriter.cxx b/vtk/vtkGdcmWriter.cxx index e97fae2b..d73ddccc 100644 --- a/vtk/vtkGdcmWriter.cxx +++ b/vtk/vtkGdcmWriter.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: vtkGdcmWriter.cxx,v $ Language: C++ - Date: $Date: 2005/03/03 18:26:48 $ - Version: $Revision: 1.20 $ + Date: $Date: 2005/04/11 17:01:16 $ + Version: $Revision: 1.21 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -27,7 +27,7 @@ #include #include -vtkCxxRevisionMacro(vtkGdcmWriter, "$Revision: 1.20 $"); +vtkCxxRevisionMacro(vtkGdcmWriter, "$Revision: 1.21 $"); vtkStandardNewMacro(vtkGdcmWriter); //----------------------------------------------------------------------------- @@ -189,7 +189,7 @@ void SetImageInformation(gdcm::FileHelper *file, vtkImageData *image) // We are about to enter floating point value. By default ostringstream are smart and don't do fixed point // thus forcing to fixed point value str.setf( std::ios::fixed ); - str << sp[0] << "\\" << sp[1]; + str << sp[1] << "\\" << sp[0]; file->InsertValEntry(str.str(),0x0028,0x0030); // Pixel Spacing str.str(""); str << sp[2];