gdcmHeaderEntry *Entry;
TagKey key = gdcmDictEntry::TranslateToKey(group, element);
if ( ! ptagHT->count(key)) {
- // we assume the element belongs to a Public Group (not a shadow one)
// we assume a Public Dictionnary *is* loaded
gdcmDict *PubDict = gdcmGlobal::GetDicts()->GetDefaultPubDict();
// if the invoqued (group,elem) doesn't exist inside the Dictionary
// TODO (?) tester les echecs en ecriture (apres chaque fwrite)
int compte =0;
itsTimeToWritePixels = false;
-
- // === Deal with the length
- // --------------------
- if((tag->GetLength())%2==1)
- {
- tag->SetValue(tag->GetValue()+"\0");
- tag->SetLength(tag->GetReadLength()+1);
- }
gr = tag->GetGroup();
el = tag->GetElement();
val = tag->GetValue().c_str();
vr = tag->GetVR();
voidArea = tag->GetVoidArea();
+
+ // === Deal with the length
+ // --------------------
+ if((tag->GetLength())%2==1)
+ {
+ tag->SetValue(tag->GetValue()+"\0");
+ tag->SetLength(tag->GetReadLength()+1);
+ }
if ( type == ACR )
{
guint16 z=0, shortLgr;
if (gr == 0xfffe) { // NO Value Representation for 'delimiters'
- // no length : write ffffffff
+ // no length : write ffffffff
+
+ // special patch to make some MR PHILIPS
+ if (el == 0x0000) return; // images e-film readable // see gdcmData/gdcm-MR-PHILIPS-16-Multi-Seq.dcm
+ // from Hospital Guy de Chauliac,
+ // Montpellier
+ // we just ignore spurious fffe|0000 tag !
+
fwrite (&ff,(size_t)4 ,(size_t)1 ,_fp);
return; // NO value for 'delimiters'
}