[ITK-users] [ITK] (no subject)
Harnish, Roy
Roy.Harnish at ucsf.edu
Mon Jul 14 22:19:44 EDT 2014
Thanks. I'll continue to work with the same gdcmImageIO, and will use the read private tags option as well. In this particular case, I don't think there is a tag for the group and element I am trying to access (0119,1030). If I grep for both 0119 and 1030 in InsightToolkit-4.5.2/Modules/ThirdParty/GDCM/src/gdcm, I don't see anything (other than an entry I tried putting in privatedicts.xml):
cbl-mbp-3369:gdcm rharnish$ pwd
/Users/Shared/OSIAV/ITK/InsightToolkit-4.5.2/Modules/ThirdParty/GDCM/src/gdcm
cbl-mbp-3369:gdcm rharnish$ grep -R 0119 . | grep 1030
./Source/DataDictionary/privatedicts.xml: <entry owner="RoyHarnish" group="0119" element="1030" vr="DS" vm="9" name="DmiDirectionCosines"/>
cbl-mbp-3369:gdcm rharnish$
Roy
________________________________________
From: Matt McCormick [matt.mccormick at kitware.com]
Sent: Monday, July 14, 2014 7:01 PM
To: Harnish, Roy
Cc: insight-users at itk.org
Subject: Re: [ITK] [ITK-users] (no subject)
On Mon, Jul 14, 2014 at 9:48 PM, Harnish, Roy <Roy.Harnish at ucsf.edu> wrote:
> Hi Matt,
>
> I wasn't calling GetLabelFromTagWith the instance of GDCMImageIO that had been used to read the image.
Re-using the gdcmImageIO that was used to read the image will ensure
the MetaDataDictionary is populated. Also, turning on the option to
read private tags before reading the image is a good idea.
HTH,
Matt
More information about the Insight-users
mailing list