From: jpr Date: Tue, 31 Jan 2006 11:32:06 +0000 (+0000) Subject: The automatic set to VR = "LO" for shadow elements that could be X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=15cdc6738aa1efbcb1444b6cae04f24d2de977df;p=gdcm.git The automatic set to VR = "LO" for shadow elements that could be 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) --- diff --git a/src/gdcmDocument.cxx b/src/gdcmDocument.cxx index 3be6b81c..fed9a8ca 100644 --- a/src/gdcmDocument.cxx +++ b/src/gdcmDocument.cxx @@ -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);