Program: gdcm
Module: $RCSfile: gdcmDataEntry.cxx,v $
Language: C++
- Date: $Date: 2005/12/09 12:23:38 $
- Version: $Revision: 1.25 $
+ Date: $Date: 2005/12/21 14:52:12 $
+ Version: $Revision: 1.26 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
return; //delimitors have NO value
}
- // --> We only deal with Little Endian writting
+ // --> We only deal with Little Endian writting.
// --> forget Big Endian Transfer Syntax writting!
// Next DICOM version will give it up ...
// --> WARNING : nothing is written;
// --> the initial data (on the the source image) is lost
// --> user is *not* informed !
-
+ gdcmDebugMacro ("Nothing was loaded, but we need to skip space on disc. "
+ << "Length =" << l );
fp->seekp(l, std::ios::cur);
}
// to avoid gdcm to propagate oddities
Program: gdcm
Module: $RCSfile: gdcmDocEntry.cxx,v $
Language: C++
- Date: $Date: 2005/11/29 12:48:46 $
- Version: $Revision: 1.79 $
+ Date: $Date: 2005/12/21 14:52:12 $
+ Version: $Revision: 1.80 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
=========================================================================*/
#include "gdcmDocEntry.h"
+#include "gdcmDataEntry.h"
#include "gdcmTS.h"
#include "gdcmVR.h"
#include "gdcmGlobal.h"
{
uint32_t ffff = 0xffffffff;
uint16_t group = GetGroup();
+
+ ///\todo allow skipping Shadow groups
+
VRKey vr = GetVR();
- uint16_t el = GetElement();
+ uint16_t elem = GetElement();
uint32_t lgth = GetLength();
- if ( group == 0xfffe && el == 0x0000 )
+ if ( group == 0xfffe && elem == 0x0000 )
{
// Fix in order to make some MR PHILIPS images e-film readable
// see gdcmData/gdcm-MR-PHILIPS-16-Multi-Seq.dcm:
// we just *always* ignore spurious fffe|0000 tag !
return;
}
+
//
// ----------- Writes the common part
//
// ----------- Writes the common part : the Tag
binary_write( *fp, group); //group number
- binary_write( *fp, el); //element number
+ binary_write( *fp, elem); //element number
// Dicom V3 group 0x0002 is *always* Explicit VR !
if ( filetype == ExplicitVR || filetype == JPEG || group == 0x0002 )
Program: gdcm
Module: $RCSfile: gdcmFile.cxx,v $
Language: C++
- Date: $Date: 2005/12/15 13:36:55 $
- Version: $Revision: 1.312 $
+ Date: $Date: 2005/12/21 14:52:12 $
+ Version: $Revision: 1.313 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
e0000->SetString(sLen.str());
}
- // FIXME : Derma?.dcm does not have it...let's remove it ?!? JPRx
+ /// \todo FIXME : Derma?.dcm does not have it...let's remove it ?!? JPRx
if( writetype != JPEG )
{
int i_lgPix = GetEntryLength(GrPixel, NumPixel);
return true;
}
+
//-----------------------------------------------------------------------------
// Protected
Program: gdcm
Module: $RCSfile: gdcmFile.h,v $
Language: C++
- Date: $Date: 2005/11/28 11:54:51 $
- Version: $Revision: 1.122 $
+ Date: $Date: 2005/12/21 14:52:13 $
+ Version: $Revision: 1.123 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
void AnonymizeNoLoad();
/// Replace patient's own information by info from the Anonymization list
bool AnonymizeFile();
-
+
bool Write(std::string fileName, FileType filetype);
+
protected:
File();
~File();