[Dcmlib] R: SerieHelper recursion limit
Lazzarato Dr.Gianni
lazzadrgi at libero.it
Mon Mar 10 18:38:28 CET 2008
> -----Messaggio originale-----
> Da: Jean-Pierre Roux [mailto:jpr at creatis.insa-lyon.fr]
> Inviato: lunedì 10 marzo 2008 17.25
> A: Lazzarato Dr.Gianni
> Cc: dcmlib at creatis.insa-lyon.fr
> Oggetto: Re: [Dcmlib] SerieHelper recursion limit
>
> Lazzarato Dr.Gianni wrote:
> >
> > Hi Jp, Mathieu and users,
> >
> >
> >
> > Using this code:
> >
> >
> >
> > gdcm::SerieHelper *sh = gdcm::SerieHelper::New();
> >
> > sh->SetLoadMode(gdcm::LD_ALL); // Load all for each file
> >
> > sh->SetDirectory(path,true); // Recursive parsing
> >
> >
> >
> >
> >
> > if in the path I have a lot of directories with a lots of patients
> > this code reach an error probably due to the large amount of studies
> > founded.
> >
> >
> >
> > Is there a easy way to restrict the number of studies sh retrieve or
> a
> > preliminary chek before sh->SetDirectory(path,true); // Recursive
> > parsing ?
> >
>
> Hi, Gianni.
>
> Right now, nothing is done.
> -> How many images are there (recursively) in the directory?
> -> On what criterion would you like to restrict the studies from being
> loaded?
>
> They is a method
> gdcm::SerieHelper::AddRestriction(uint16_t group, uint16_t elem,
> std::string const &value, int op);
> that allows you to ask for dropping images that don't match to a given
> criterion on a given tag
> for instance images where modality IS NOT "CT", or where date is <
> "01-01-2007", or where patient name is not "Lazzarato Dr.Gianni", etc.
> (restriction criterions are 'added' if
> gdcm::SerieHelper::AddRestriction
> method is called more than once)
>
> They are not taken into account at loading time, but it shouldn't be
> very difficult (/ should be usefull ?) to add the feature.
> Would it solve your problem?
>
> Jean-Pierre
Hi Jean-Pierre, nice to hear you,
Basically I don't know how many images (or patients) I can found. (sometimes
a hundred of studies)... Do you know the limit of series helper recursive
parsing?
Restrict around the patient name is the best bet according to me ....but to
know what patient name to choose prior I would know the names.
So is there an alternative way, in gdcm, to recursively explore a dicom tree
only finding the patients name without using seriehelper?
Thanks a lot
Gianni
>
>
>
>
> >
> >
> > Thanks
> >
> >
> >
> > Gianni
> >
> > ---------------------------------------------------------------------
> ---
> >
> > _______________________________________________
> > 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