[ITK] [ITK-users] (no subject)
Matt McCormick
matt.mccormick at kitware.com
Mon Jul 14 21:02:41 EDT 2014
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
>
_____________________________________
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
More information about the Community
mailing list