How to get information from private tag.
Moderator: Moderator Team
-
- Posts: 24
- Joined: Thu, 2013-01-10, 16:40
How to get information from private tag.
I am using DCMTK to get private tag information. I uses print(COUT) function the private tag display correctly, but I uses the below code,I don't get tagname and VR value
fileformat.getDataset()->findAndGetOFString(tag, ostring);
cout<<tagname.getTagName()<<":"<<tagname.getVR().getVRName()<<endl;
The display is Unknow Tag & Data ??
What is happend? How to get information from private tag.
fileformat.getDataset()->findAndGetOFString(tag, ostring);
cout<<tagname.getTagName()<<":"<<tagname.getVR().getVRName()<<endl;
The display is Unknow Tag & Data ??
What is happend? How to get information from private tag.
-
- DCMTK Developer
- Posts: 2506
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: How to get information from private tag.
Where does "tagname" come from and what type has it?
-
- Posts: 24
- Joined: Thu, 2013-01-10, 16:40
Re: How to get information from private tag.
Sorry, I copy missing. tagname is tag.
fileformat.getDataset()->findAndGetOFString(tag, ostring);
cout<<tag.getTagName()<<":"<<tag.getVR().getVRName()<<endl;
fileformat.getDataset()->findAndGetOFString(tag, ostring);
cout<<tag.getTagName()<<":"<<tag.getVR().getVRName()<<endl;
-
- DCMTK Developer
- Posts: 2506
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: How to get information from private tag.
And how did you define the value of "tag"? I guess you omitted the private creator... See this HOWTO.
-
- Posts: 24
- Joined: Thu, 2013-01-10, 16:40
Re: How to get information from private tag.
I know this topic. I added private successfully. I can use print(COUT) to display. But I want to display it by use code not use print(COUT)
-
- DCMTK Developer
- Posts: 2506
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
Re: How to get information from private tag.
I'm sorry but if you don't answer the questions, I will not be able to help you ...
What is the type of "tagname" and what is its value (i.e. where did you define it)?
Background of my questions is: Did you make sure that the private creator is set appropriately.
What is the type of "tagname" and what is its value (i.e. where did you define it)?
Background of my questions is: Did you make sure that the private creator is set appropriately.
-
- Posts: 24
- Joined: Thu, 2013-01-10, 16:40
Re: How to get information from private tag.
OK, To understand easily. Assume that I copy code from this http://support.dcmtk.org/wiki/dcmtk/how ... rivatedata. In the example, the author using print(OUT) to view output.And I don't want to use print function to print, I want to get private tag that is created before. Please help me? Because I cant view the value of the private Tag but I don't see private element tag name.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest