[Dcmlib] Known bug : VR = UN
Jean-Pierre Roux
Jean-Pierre.Roux at creatis.insa-lyon.fr
Thu Jun 8 17:40:51 CEST 2006
Hi, gdcm users.
Just to keep a track in the ML :
Till gdcm1.2 (included), due to a mistake in the writter, gdcm-written
images holding a Data Element whose VR is "UN" (that's not so common),
are bugged, and cannot be re-read, nowhere
:-(
A quick an dirty solution is to make a temporary version of gdcm, to
read those bugged images and rewrite them ( that will be done in a
kosker way ).
==> in gdcmDocument.cxx, at the very begining of FindDocEntryLength()
method,
just commenter out the following
|| vr == "UN"
(see hereafter)
void Document::FindDocEntryLength( DocEntry *entry )
throw ( FormatError )
{
const VRKey &vr = entry->GetVR();
uint16_t length16;
if ( Filetype == ExplicitVR && !entry->IsImplicitVR() )
{
if ( vr == "OB" || vr == "OW" || vr == "SQ" || vr == "UT"
/* || vr == "UN" */ )
Sorry for the trouble;
Jean-Pierre Roux
More information about the Dcmlib
mailing list