[Insight-users] GDCM Separate diffusion images by b-value

Alessandro notinmyhead at gmail.com
Tue Oct 23 09:45:48 EDT 2012


Thanks,

now it works for me too! I hope this will be permanently fixed since upcoming version of ITK ;)

Ale

Il giorno 23/ott/2012, alle ore 13.33, kosborn ha scritto:

> Instead of trying to bypass the bug, a better solution is to fix it as
> someone else pointed out in an earlier thread.  Edit the file 
> InsightToolkit-4.2.1/Modules/ThirdParty/GDCM/src/gdcm/Source/MediaStorageAndFileFormat/gdcmSerieHelper.cxx
> 
> and change the SetUseSeriesDetails method to 
> 
>    void SerieHelper::SetUseSeriesDetails( bool useSeriesDetails )
>    {
>          //UseSeriesDetails = useSeriesDetails;
>          m_UseSeriesDetails = useSeriesDetails;
>    }
> 
> and rebuild ITK. Then the AddSeriesRestriction method of GDCMSeriesFileNames
> works as it should. In my case
> 
>        itk::GDCMSeriesFileNames::Pointer nameGenerator =
> itk::GDCMSeriesFileNames::New();
>        nameGenerator->SetLoadSequences(true);
>        nameGenerator->SetLoadPrivateTags(true);
>        nameGenerator->SetUseSeriesDetails(true);
>        nameGenerator->AddSeriesRestriction("0019|100c");
>        nameGenerator->SetDirectory("path/to/dicom/files");
>        itk::SerieUIDContainer uids = nameGenerator->GetSeriesUIDs();
> 
> gives me as many series uids are there are b-values, using 0019|100c as the
> private Siemens tag for b-values. 
> 
> Good luck, Kevin
> 
> 
> 
> 
> Alessandro wrote
>> Hello,
>> 
>> I got a compiler error since AddSeriesRestiction is not a member of the
>> class... How do you compile it?
>> 
>> Thanks,
>> Ale
>> 
>> Il giorno 22/ott/2012, alle ore 03.21, kosborn ha scritto:
>> 
>>>   nameGenerator->GetSeriesHelper()->AddSeriesRestriction(0x0019, 0x100c,
>>> "400", gdcm::GDCM_GREATER);
>> 
>> _____________________________________
>> Powered by www.kitware.com
>> 
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>> 
>> Kitware offers ITK Training Courses, for more information visit:
>> 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
>> 
>> Follow this link to subscribe/unsubscribe:
>> http://www.itk.org/mailman/listinfo/insight-users
> 
> 
> 
> 
> 
> --
> View this message in context: http://itk-insight-users.2283740.n2.nabble.com/GDCM-Separate-diffusion-images-by-b-value-tp7581369p7581390.html
> Sent from the ITK Insight Users mailing list archive at Nabble.com.
> _____________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Kitware offers ITK Training Courses, for more information visit:
> 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
> 
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users



More information about the Insight-users mailing list