Program: gdcm
Module: $RCSfile: gdcmDocument.cxx,v $
Language: C++
- Date: $Date: 2007/07/11 12:21:01 $
- Version: $Revision: 1.363 $
+ Date: $Date: 2007/07/26 08:36:49 $
+ Version: $Revision: 1.364 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
* --> We don't write the element 0x0000 (group length)
*/
- ElementSet::WriteContent(fp, filetype); // This one is recursive
+ ElementSet::WriteContent(fp, filetype, false); // This one is recursive
}
// -----------------------------------------
changeFromUN = false;
CurrentGroup = GetInt16();
CurrentElem = GetInt16();
-
+
// In 'true DICOM' files Group 0002 is always little endian
if ( HasDCMPreamble )
{
realVR = "UL";
}
- // Commented out in order not to generate 'Shadow Groups' where some
+ // Was 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)
- /*
+ // -> Better we fix the problem at Write time
+
else if (CurrentGroup%2 == 1 &&
(CurrentElem >= 0x0010 && CurrentElem <=0x00ff ))
{
// (gggg-0010->00FF where gggg is odd) attributes have to be LO
realVR = "LO";
}
- */
+
else
{
DictEntry *dictEntry = GetDictEntry(CurrentGroup,CurrentElem);//only when ImplicitVR