findAndGetFloat64

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
giaco
Posts: 2
Joined: Wed, 2008-01-09, 12:24

findAndGetFloat64

#1 Post by giaco »

Hello I have a problem with dicom tag array:

DcmDataset *ds = dicom.getDataset();
double *position;
ds->findAndGetFloat64(DCM_ImagePositionPatient,position);

findAndGetFloat64 return the pointer position as NULL.
I have this problem with all tag array.

Thanks a lot in advantage.

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »


giaco
Posts: 2
Joined: Wed, 2008-01-09, 12:24

#3 Post by giaco »

oh yes sorry ds->findAndGetFloat64Array(DCM_ImagePositionPatient,position);

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#4 Post by Jörg Riesmeier »

As you can read in the documentation, findAndGetFloat64Array() is only applicable to data elements with the value representation FD. However, ImagePositionPatient has the value representation DS.

Michael Onken
DCMTK Developer
Posts: 2049
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

#5 Post by Michael Onken »

You can use the findAndGetFloat64 (documentation) which is applicable to VR DS. You can use the position parameter to get all three values of attribute Image Position Patient.

Regards,
Michael

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest