From 382ccb2da3319382d7e1f7296b937d60c63dee97 Mon Sep 17 00:00:00 2001 From: malaterre Date: Mon, 11 Apr 2005 17:01:16 +0000 Subject: [PATCH] BUG: Spacing in DICOM is y first THEN x spacing --- ChangeLog | 4 ++++ vtk/vtkGdcmWriter.cxx | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) 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]; -- 2.48.1