]> Creatis software - gdcm.git/commitdiff
The automatic set to VR = "LO" for shadow elements that could be
authorjpr <jpr>
Tue, 31 Jan 2006 11:32:06 +0000 (11:32 +0000)
committerjpr <jpr>
Tue, 31 Jan 2006 11:32:06 +0000 (11:32 +0000)
is now commented out in order not to generate 'Shadow Groups' where some
Data Elements are Explicit VR and some other ones Implicit VR
(Stupid MatLab DICOM Reader couldn't read gdcm-written images)

src/gdcmDocument.cxx

index 3be6b81cb57bfbb1f83d6b92166e1888dd262419..fed9a8ca3c22d68b511aad325964cdc7e55a6d78 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmDocument.cxx,v $
   Language:  C++
-  Date:      $Date: 2006/01/27 10:01:33 $
-  Version:   $Revision: 1.336 $
+  Date:      $Date: 2006/01/31 11:32:06 $
+  Version:   $Revision: 1.337 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -2034,6 +2034,10 @@ DocEntry *Document::ReadNextDocEntry()
       {
          realVR = "UL";     // must be UL
       }
+      // Commented out in order not to generate 'Shadow Groups' where some 
+      // Data Elements are Explicit VR and some other ones Implicit VR
+      // (Stupid MatLab DICOM Reader couln't read gdcm-written images)
+      /*
       else if (CurrentGroup%2 == 1 &&  
                                (CurrentElem >= 0x0010 && CurrentElem <=0x00ff ))
       {  
@@ -2041,6 +2045,7 @@ DocEntry *Document::ReadNextDocEntry()
       // (gggg-0010->00FF where gggg is odd) attributes have to be LO
          realVR = "LO";
       }
+      */
       else
       {
          DictEntry *dictEntry = GetDictEntry(CurrentGroup,CurrentElem);