[Dcmlib] error parsing

Mathieu Malaterre mathieu.malaterre at gmail.com
Mon Jun 18 11:57:31 CEST 2007


Actually in the DICOM this is perfectly valid to have resursive
DICOMDIR. Which means that the toplevel DICOMDIR should NOT reference
anything that will be referenced in the sublevel DICOMDIR

HTH
-Mathieu

On 6/18/07, Jean-Pierre Roux <Jean-Pierre.Roux at creatis.insa-lyon.fr> wrote:
> Lazzarato Dr. Gianni wrote:
> > Hi Jean-Pierre,
> >               how are you?
> >               Excuse me for another question : loading a dataset from a
> > CD-ROM ( I include a portion attached to this mail ) I got an error in this
> > point of the code:
> >
>
> Hi, Gianni.
> Thank you for reporting the bug.
> Right now, we never had a dicomdir within the same directory than the
> images...
> It's up to the SerieHelper to drop the file, not to the user to ask for
> dropping it.
> I'll fix the bug.
>
> --> Could you post your messages to dcmlib at creatis.univ-lyon1.fr, so we
> keep a track in the mailing list, it may be usefull for other people if
> they have a similar problem.
>
> Jean-Pierre Roux
>
>
>
> >
> >   gdcm::SerieHelper *sh = gdcm::SerieHelper::New();
> >   sh->SetLoadMode(gdcm::LD_ALL);       // Load all for each file
> >   sh->SetDirectory(fold.c_str(),true); // Recursive parsing
> >
> >   this code raise an exception in GDCMDdoocument.cxx
> >   at line 930->  throw FormatError( "Document::ReadBegBuffer()", " file
> > error." );
> >
> >   the problem is related to the file 8gbb666f.dcm
> >   ( I suppose it is a kind of dicomdir...)
> >
> >   If I copy data on HD and erase this file, the parser work correctly and
> > seriehelp load correctly the serie.
> >
> >   Is it possible to use sh->AddRestriction()function (or other approach) to
> > exclude 8gbb666f.dcm file  from parsing without deleting it? (because it
> > resides in the cd-rom so it is impossible to erase).
> >   What kind of sintax could be used?
> >
> >   Thank you for your kind attention.
> >
> >   Gianni
> >
> _______________________________________________
> Dcmlib mailing list
> Dcmlib at creatis.insa-lyon.fr
> http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib
>


-- 
Mathieu



More information about the Dcmlib mailing list