[Dcmlib] Known bug : VR = UN
Mathieu Malaterre
mathieu.malaterre at kitware.com
Thu Jun 8 18:10:11 CEST 2006
JP,
Could you open a bug at:
http://itk.org/Bug
And assign it to me. ITK still uses GDCM 1.2
Thanks
Mathieu
Jean-Pierre Roux wrote:
> 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
>
> _______________________________________________
> Dcmlib mailing list
> Dcmlib at creatis.insa-lyon.fr
> http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib
>
More information about the Dcmlib
mailing list