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 »

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 »

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: 2501
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

#3 Post by J. Riesmeier »

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 »

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: 2501
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

#5 Post by J. Riesmeier »

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 »

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: 2501
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

#7 Post by J. Riesmeier »

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 »

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: 2501
Joined: Tue, 2011-05-03, 14:38
Location: Oldenburg, Germany
Contact:

#9 Post by J. Riesmeier »

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 »

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: Ahrefs [Bot] and 1 guest