get number of image

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
nobnet
Posts: 28
Joined: Mon, 2005-02-28, 20:23
Contact:

get number of image

#1 Post by nobnet »

I want to get the number to each image opened successively but the function findAndGetOFString(DCM_InstanceNumber,ImageID) doesn't change the number to each image.

what do I do?

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 »

I guess that all images use the same value for Instance Number (0020,0013).

nobnet
Posts: 28
Joined: Mon, 2005-02-28, 20:23
Contact:

get number of image

#3 Post by nobnet »

I already used the same function to get the number and it works correctly, only in a loop it don't change it for each image maybe the cause it don't clear, and I tried to clear the variable but I don't get.
What do I do ?.


thanks!

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 »

The implementation of findAndGetOFString() should clear the resulting string automatically if the status (return value of the function) indicates an error. If this does not work for you just call ImageID.clear().

Post Reply

Who is online

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