unable to get tag (0018,1310) acquisition matrix using the dcmtk
Moderator: Moderator Team
unable to get tag (0018,1310) acquisition matrix using the dcmtk
Hi All,
unable to get tag (0018,1310) acquisition matrix using the dcmtk
Please help me out.
From
Ashish
unable to get tag (0018,1310) acquisition matrix using the dcmtk
Please help me out.
From
Ashish
Re: unable to get tag (0018,1310) acquisition matrix using the dcmtk
ashishbme wrote:Hi All,
unable to get tag (0018,1310) acquisition matrix using the dcmtk
Please help me out.
From
Ashish
-
- DCMTK Developer
- Posts: 2550
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
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
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
-
- DCMTK Developer
- Posts: 2550
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
-
- DCMTK Developer
- Posts: 2550
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
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.
Read the API documentation: "The result variable 'value' is automatically set to NULL if an error occurs."and i am getting NULL which i have set as a default.
-
- DCMTK Developer
- Posts: 2550
- Joined: Tue, 2011-05-03, 14:38
- Location: Oldenburg, Germany
- Contact:
What about reading the documentation 
There are, for example, findAndGetUint16(), findAndGetUint16Array(), findAndGetOFString(), findAndGetOFStringArray() ...

There are, for example, findAndGetUint16(), findAndGetUint16Array(), findAndGetOFString(), findAndGetOFStringArray() ...
Who is online
Users browsing this forum: Ahrefs [Bot] and 1 guest