DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Thu, 2017-08-17, 00:29

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue, 2012-05-01, 10:27 
Offline

Joined: Mon, 2010-06-14, 11:46
Posts: 14
Hello,

I would like to read the dicom tag value of "Image Position" [ 0028, 0032 ].
How to read the image position x, y and z coordinate values.

[code]
pDataset->findAndGetOFString(DCM_ImagePositionPatient,ofStringDicomField).good(){
lpszDicomField = ofStringDicomField.data();
nDicomFieldLength = strlen(lpszDicomField);
// copy the data in my structure
}
[/code]

If actual value of image position is [-195.000000\-195.000000\-1016.000000]
I can retrieve only the x-coordinate value i.e. -195.00000

how do i get the other y and z coordinate values.

Thanks..


Top
 Profile  
 
 Post subject:
PostPosted: Tue, 2012-05-01, 16:53 
Offline
DCMTK Developer

Joined: Tue, 2011-05-03, 14:38
Posts: 1833
Location: Oldenburg, Germany
There is a "pos" parameter for the findAndGetXXX() methods, which has a default value of "0". Reading the documentation would certainly help :-)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: Baidu [Spider] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group