[ITK-users] [ITK] (no subject)
Harnish, Roy
Roy.Harnish at ucsf.edu
Mon Jul 14 21:27:21 EDT 2014
Hi Matt,
Here's what I'm running:
std::string tagkey = "0119|1030";
std::string labelId;
std::string value;
std::cout << "itk::GDCMImageIO::GetLabelFromTag( tagkey, labelId ): ";
std::cout << itk::GDCMImageIO::GetLabelFromTag( tagkey, labelId ) << std::endl;
std::cout << "labelId: " << labelId << std::endl;
And here's the output
itk::GDCMImageIO::GetLabelFromTag( tagkey, labelId ): 0
labelId:
Roy
________________________________________
From: Matt McCormick [matt.mccormick at kitware.com]
Sent: Monday, July 14, 2014 6:18 PM
To: Harnish, Roy; insight-users at itk.org
Subject: Re: [ITK] [ITK-users] (no subject)
Hi Roy,
Does calling GetLabelFromTag [1] return true?
Thanks,
Matt
[1] http://www.itk.org/Doxygen/html/classitk_1_1GDCMImageIO.html#adad2642a7dab4a896a8bf6afea6ff205
On Mon, Jul 14, 2014 at 9:08 PM, Harnish, Roy <Roy.Harnish at ucsf.edu> wrote:
> Hi Matt,
>
> Thanks for getting back with me so quickly! I just tried turning both of those on, but I get the same result.
>
> Roy
>
>
> ________________________________________
> From: Matt McCormick [matt.mccormick at kitware.com]
> Sent: Monday, July 14, 2014 6:02 PM
> To: Harnish, Roy
> Cc: insight-users at itk.org
> Subject: Re: [ITK] [ITK-users] (no subject)
>
> Hi Roy,
>
> Does ccalling LoadPrivateTagsOn() [1] or LoadSequencesOn() [2] improve
> the result?
>
> Matt
>
> [1] http://www.itk.org/Doxygen/html/classitk_1_1GDCMImageIO.html#a26ea3d5e85c0e6a7a614cbfbc05c4478
>
> [2] http://www.itk.org/Doxygen/html/classitk_1_1GDCMImageIO.html#a7e81a44773f7daf85c6523866312372e
>
> On Mon, Jul 14, 2014 at 8:19 PM, Harnish, Roy <Roy.Harnish at ucsf.edu> wrote:
>> Hi,
>>
>> I'm wondering if there is a procedure for adding a dicom dictionary to those
>> that are used by the GDCMImageIO, or a way to parse a private field by
>> furnishing the pertinent info to the right method. I'm trying to access the
>> field 0119,1030, which is pretty much a 3d version of
>> ImageOrientationPatient. I have no problem seeing the field in a dcmdump of
>> an image that contains the field, but am having trouble getting my program
>> to handle the field properly. Here's what a dcmdump of the field looks
>> like:
>>
>> cbl-mbp-3369:Release rharnish$ dcmdump dce.dcm | grep -i imageor
>> (0020,0037) DS [-1\-0\0\-0\-1\0] # 16, 6
>> ImageOrientationPatient
>> cbl-mbp-3369:Release rharnish$ dcmdump dce.dcm | grep -i 0119,1030
>> (0119,1030) DS [-1\-0\0\-0\-1\0\0\0\1] # 22, 9 Unknown Tag
>> & Data
>> cbl-mbp-3369:Release rharnish$
>>
>> This is a section of code that tires to parse the field:
>>
>> std::string tagkey = "0119|1030";
>> // std::string tagkey = "0020|0037";
>> std::string labelId;
>> std::string value;
>>
>>
>> if( gdcmImageIO->GetValueFromTag(tagkey, value) )
>> {
>> std::cout << tagkey << ": ";
>> std::cout << value << std::endl;
>> }
>>
>> Here's the output with std::string tagkey = "0119|1030";:
>>
>> 0119|1030: LTFcLTBcMFwtMFwtMVwwXDBcMFwxIA==
>>
>>
>> Here's the output with std::string tagkey = "0020|0037";
>>
>> 0020|0037: -1\-0\0\-0\-1\0
>>
>> Any suggestions would be much appreciated.
>>
>> _____________________________________
>> 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://public.kitware.com/mailman/listinfo/insight-users
>>
>> _______________________________________________
>> Community mailing list
>> Community at itk.org
>> http://public.kitware.com/mailman/listinfo/community
>>
>
More information about the Insight-users
mailing list