[Community] [Insight-users] void SerieHelper::SetUseSeriesDetails( bool useSeriesDetails )

Matt McCormick matt.mccormick at kitware.com
Thu Oct 24 11:46:38 EDT 2013


Hi Mengda,

A patch was merged into upstream GDCM and has been applied in ITK

  http://itk.org/gitweb?p=ITK.git;a=commit;h=050227d3bc4d52a06d7f32ddc82fc00e8997c706

Please try ITK master.

  http://www.itk.org/Wiki/ITK/Git

Thanks,
Matt

On Thu, Oct 24, 2013 at 2:54 AM, Mengda Wu <wumengda at gmail.com> wrote:
> Hi all,
>
>    I happened to experience the same bug. I am curious to see it is still
> there in ITK-4.4.1 release. Can anyone in gdcm and ITK teams integrate this
> fix?
>
> Thanks,
> Mengda
>
>
> On Thu, Jan 10, 2013 at 12:01 PM, Matt McCormick
> <matt.mccormick at kitware.com> wrote:
>>
>> Hi Ale,
>>
>> To get the fix integrated, write at test along with the fix, and
>> submit it to upstream GDCM:
>>
>>   https://lists.sourceforge.net/lists/listinfo/gdcm-developers
>>
>> and ITK:
>>
>>   http://www.itk.org/Wiki/ITK/Git/Develop
>>
>> Please let me know if there are any questions.
>>
>> Thanks,
>> Matt
>>
>> On Thu, Jan 10, 2013 at 9:16 AM, Alessandro <notinmyhead at gmail.com> wrote:
>> > Hi,
>> >
>> > I refer to this email (dated 10/23/2012):
>> >
>> > 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
>> >
>> >
>> > _____________________________________
>> > 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
>> _____________________________________
>> 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
>
>
_____________________________________
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 Community mailing list