]> Creatis software - gdcm.git/commitdiff
BUG: Spacing in DICOM is y first THEN x spacing
authormalaterre <malaterre>
Mon, 11 Apr 2005 17:01:16 +0000 (17:01 +0000)
committermalaterre <malaterre>
Mon, 11 Apr 2005 17:01:16 +0000 (17:01 +0000)
ChangeLog
vtk/vtkGdcmWriter.cxx

index 9f9b46b505922b66c8da112217e775ac5f52168d..44911c83f16d7626927571c9ba1ebd53b96c7b1c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-04-11 Mathieu Malaterre  <Mathieu.Malaterre@creatis.insa-lyon.fr>
+   * vtk/vtkGdcmWriter fix bug when writing spacing. The Y spacing comes first
+          then the X spacing.
+
 2005-04-05 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
    * src/gdcmDictGroupName.[h|cxx] : add a correlation between a group (number)
      and it's representation name (for the NIH)
index e97fae2ba06791b53a295f67bf11df2019d8612d..d73ddccc8decb526cf072b7bdc72e96e55c8a318 100644 (file)
@@ -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 <vtkPointData.h>
 #include <vtkLookupTable.h>
 
-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];