unable to get tag (0018,1310) acquisition matrix using the dcmtk

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
ashishbme
Posts: 30
Joined: Tue, 2011-05-10, 14:32

unable to get tag (0018,1310) acquisition matrix using the dcmtk

#1 Post by ashishbme » Wed, 2011-05-18, 09:39

Hi All,

unable to get tag (0018,1310) acquisition matrix using the dcmtk

Please help me out.

From
Ashish

ashishbme
Posts: 30
Joined: Tue, 2011-05-10, 14:32

Re: unable to get tag (0018,1310) acquisition matrix using the dcmtk

#2 Post by ashishbme » Wed, 2011-05-18, 09:56

ashishbme wrote:Hi All,

unable to get tag (0018,1310) acquisition matrix using the dcmtk

Please help me out.

From
Ashish

J. Riesmeier
DCMTK Developer
Posts: 2244
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

#3 Post by J. Riesmeier » Wed, 2011-05-18, 16:36

What exactly does not work or - to be more precise - what have you tried in order to get the value of Acquisition Matrix?

ashishbme
Posts: 30
Joined: Tue, 2011-05-10, 14:32

#4 Post by ashishbme » Thu, 2011-05-19, 06:08

Hi J. Riesmeier,

Thanks for your reply,
In my project i am already using dcmtk for 2D and 3D viewer for CT but for 3D MR i need to add some more tag in my database for some calculation to get perfect view of MR Images. The tags which i am adding is
(0018,0093) Percent Sampling
(0018,0094) Percent Phase Field of View
(0018,1100) Reconstruction Diameter
(0018,1310) Acquisition Matrix
(0018,1312) In Phase Encoding Direction
(0018,0088) Spacing Between Slice
i am getting all tag data except (0018,1310) Acquisition Matrix
i defined as a VARCHAR 200 to get this tag. and i checked this tag value is in dicom header.

Thanks
Ashish

J. Riesmeier
DCMTK Developer
Posts: 2244
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

#5 Post by J. Riesmeier » Thu, 2011-05-19, 08:13

My question was more directed to the following details: Which DCMTK method have you used and what was the OFCondition return value?

ashishbme
Posts: 30
Joined: Tue, 2011-05-10, 14:32

#6 Post by ashishbme » Thu, 2011-05-19, 10:54

Hi J. Riesmeier,

I am using findAndGetString method to get the value.
it is showing
the Condition = 0x007a1424 ECC_IllegalCall {theCodeAndModule=65543 theStatus=OF_error theText=0x006a67a4 "Illegal Call, perhaps wrong parameters" }

and i am getting NULL which i have set as a default.

Thanks
Ashish

J. Riesmeier
DCMTK Developer
Posts: 2244
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

#7 Post by J. Riesmeier » Thu, 2011-05-19, 11:09

Then, this question is really easy to answer (by simply looking into the documentation): Acquisition Matrix has the VR "US" and findAndGetString() is not applicable to this VR - that's it.
and i am getting NULL which i have set as a default.
Read the API documentation: "The result variable 'value' is automatically set to NULL if an error occurs."

ashishbme
Posts: 30
Joined: Tue, 2011-05-10, 14:32

#8 Post by ashishbme » Thu, 2011-05-19, 11:21

Hi J. Riesmeier,

Thanks for quick reply
SO in this case what method i should use to get the header value of Acquisition Matrix.

Thanks
Ashish

J. Riesmeier
DCMTK Developer
Posts: 2244
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

#9 Post by J. Riesmeier » Thu, 2011-05-19, 11:25

What about reading the documentation :-)

There are, for example, findAndGetUint16(), findAndGetUint16Array(), findAndGetOFString(), findAndGetOFStringArray() ...

ashishbme
Posts: 30
Joined: Tue, 2011-05-10, 14:32

#10 Post by ashishbme » Sat, 2011-05-21, 11:19

Hi J. Riesmeier,

Thanks i got the values in this tag.
i am going through from documentation....

Thnaks
Ashish

Post Reply

Who is online

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