[Insight-users] OMG! GDCM is broken again! AddRestriction() doesn't work.
Mariana Bustamante
marianabb at gmail.com
Fri Aug 9 11:24:32 EDT 2013
Hi Constantine,
If you're using you system installed GDCM then you could use gdcm::Scanner
and gdcm::Sorter to organize the files and obtain the lists of filenames
for the reader. Take a look at these examples:
http://gdcm.sourceforge.net/2.2/html/VolumeSorter_8cxx-example.html
http://gdcm.sourceforge.net/2.2/html/SortImage_8cxx-example.html
Once the files are sorted you should do something like:
FileNamesContainer sorted_files = sorter.GetFilenames();
reader->SetFileNames(sorted_files);
HTH,
--
Mariana
On Fri, Aug 9, 2013 at 2:25 PM, Constantine Zakkaroff <mnkz at leeds.ac.uk>wrote:
> Hello ALL.
>
> I'm trying to sub-refine a series based on some DICOM tag like this:
>
> namesGenerator->**AddSeriesRestriction("2001|**100a");
> namesGenerator->**SetInputDirectory(argv[1]);
> const itk::SerieUIDContainer &seriesUIDs = namesGenerator->GetSeriesUIDs(*
> *);
>
> It is based on the DicomSeriesReadImageWrite2.cxx example.
>
> In ITK 4.4.1 this doesn't work. I get only one UID.
>
> The same code compiled against ITK 3.20.1 gives me the number of UIDs
> expected.
>
> Looks like some sort of regression, no?
>
> Regards,
> Constantine
> ______________________________**_______
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/**opensource/opensource.html<http://www.kitware.com/opensource/opensource.html>
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/**products/protraining.php<http://www.kitware.com/products/protraining.php>
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_**FAQ <http://www.itk.org/Wiki/ITK_FAQ>
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/**listinfo/insight-users<http://www.itk.org/mailman/listinfo/insight-users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20130809/79e01adf/attachment-0001.htm>
More information about the Insight-users
mailing list