]> Creatis software - gdcm.git/commitdiff
Now gdcm writes images with *also* Imager Pixel Spacing (0x0018,0x1164),
authorjpr <jpr>
Thu, 27 Oct 2005 17:25:04 +0000 (17:25 +0000)
committerjpr <jpr>
Thu, 27 Oct 2005 17:25:04 +0000 (17:25 +0000)
that is the *legal* Dicom V3 place to store Pixel Spacing !

src/gdcmFileHelper.cxx

index e2326b53faf0abf8d6af3649d64fcfa207fd5c36..40dd9d0b647efe8d463d4edbe2a1eb0f98585102 100644 (file)
@@ -4,8 +4,8 @@
   Module:    $RCSfile: gdcmFileHelper.cxx,v $
   Language:  C++
 
-  Date:      $Date: 2005/10/26 08:28:58 $
-  Version:   $Revision: 1.76 $
+  Date:      $Date: 2005/10/27 17:25:04 $
+  Version:   $Revision: 1.77 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -1340,6 +1340,9 @@ void FileHelper::CheckMandatoryElements()
                        << " for consistency purpose");
    }
 
+    // Imager Pixel Spacing : defaulted to 1.0\1.0
+    // --> This one is the *legal* one !
+   CheckMandatoryEntry(0x0018,0x1164,"1.0\\1.0");
     // Pixel Spacing : defaulted to 1.0\1.0
    CheckMandatoryEntry(0x0028,0x0030,"1.0\\1.0");