How to get the value of each data element

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
xfjsuperking
Posts: 70
Joined: Thu, 2007-08-30, 02:01

How to get the value of each data element

#1 Post by xfjsuperking »

Hello everyone :
i want to get the value of each data element 's value .How can i do this
Thanks in advance

kattabomane
Posts: 43
Joined: Tue, 2005-02-01, 22:53

Tags

#2 Post by kattabomane »

Hello,

You can have a look on the DCMDUMP source file from the dcmtk.

komal
Posts: 12
Joined: Tue, 2007-10-09, 07:54

#3 Post by komal »

You can follow the steps mentioned below:
1. Get hold of DcmItem object.
2. Use nextInContainer method of DcmItem object. This returns a DcmObject object.
3. Use getTag method of DcmObject object. This returns a DcmTag object.
4. Use methods og DcmTag to get the information related to a tag (e.g. VR name, Tag name, etc).
5. Use findAndGetOFStringArray of DcmItem object to retrieve tag value.

Hope this helps.

-Cheers
Komal
________
buy vaporizers
________
penny stocks to watch

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest