[Dcmlib] new feature : gdcm::SerieHelper vs vtkGdcmReader

Jean-Pierre Roux jpr at creatis.insa-lyon.fr
Tue Jul 19 11:37:46 CEST 2005


New Features

    * AnonymizeNoLoad used with dirin=inputDirectoryName anonymizes all
      the files within the given Directory.

    * gdcm::SerieHelper() has a new method void AddGdcmFile(File
      *header), that allows aware user to create a 'FileList' (actually
      a std::vector< File* > ).
      The FileList created this way will be the 'first one' in the
      gdcm::FileHelper() (retrieve it with FileList
      *GetFirstCoherentFileList() ).
      It may be sorted using OrderFileList.
      No 'coherence check' will be performed on this FileList before
      sorting.
      It may be passed to a vtkGdcmReader (to avoid parsing twice the
      files)

    * vtkGdcmReader can now get the result of gdcm::SerieHelper (to
      avoid parsing twice the files)
      Proceed as follow :

           gdcmSerieHelper *sh = new gdcmSerieHelper();
           sh->SetDirectory(myImageDirectory, true);
           gdcmFileList *l = s->GetFirstCoherentFileList();
           s->OrderFileList(l);

           vtkGdcmReader *gr = new vtkGdcmReader();
           gr->SetCoherentFileList(l);
           gr->Update();  
           

      This works with a directory that contains only one 'Serie' (same
      Serie UID for all the images).
      If it contains more than one Serie, you'll have to loop on the
      Series, using GetNextCoherentFileList();
      It will be up to the user to delete the gdcm::File.

      See vtkgdcmSerieViewer for an example.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.creatis.insa-lyon.fr/pipermail/dcmlib/attachments/20050719/582c2d11/attachment.html>


More information about the Dcmlib mailing list