how to get the element's value of each individual frame

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
bydoingbylearn
Posts: 29
Joined: Mon, 2010-08-16, 10:01
Location: CHINA

how to get the element's value of each individual frame

#1 Post by bydoingbylearn »

Hi,everyone

When I process Enhanced Information Object Multiframe I want to know the detail information of every frame.
I use findAndGetOFString() can get element's value of the shared for all frames,but I don't know how to get each individual frame .



I would appreciate any help! Thanks!!
Last edited by bydoingbylearn on Mon, 2011-04-11, 08:33, edited 1 time in total.

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 »

In both cases (shared and per-frame), the information is stored in an item of the corresponding sequence element. The only difference is that for the SharedFunctionalGroupsSequence information on all frames are stored in a single item, while for the PerFrameFunctionalGroupsSequence the information on the individual frames is stored in separate items. That means: For the latter case, you first need to retrieve the corresponding item, e.g. using findAndGetSequenceItem(), and then use findAndGetOFString() and the like on the retrieved item.

bydoingbylearn
Posts: 29
Joined: Mon, 2010-08-16, 10:01
Location: CHINA

#3 Post by bydoingbylearn »

Ha-ha,you are my sunshine,thanks!

bydoingbylearn
Posts: 29
Joined: Mon, 2010-08-16, 10:01
Location: CHINA

#4 Post by bydoingbylearn »

I want to know
pDataset->findAndGetSequenceItem(DCM_PerFrameFunctionalGroupsSequence, m_DcmItem,1);
m_DcmItem->findAndGetOFString(DCM_TablePosition,TablePositon,1);

why there is something wrong?

Can you give me example to get the CTPositionSequence DataCollectionCenterPatient ReconstructionTargetCenterPatient?

Thank you !!

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

#5 Post by Jörg Riesmeier »

Two general remarks:
  1. You should always check the return value when using a function/method. This is also true for the DCMTK.
  2. The 'pos' / 'itemNum' parameter of both findAndGetXXX methods is 0-based, so "1" is the second entry.
And the definite answer to many if not most questions: Reading the documentation helps :)

bydoingbylearn
Posts: 29
Joined: Mon, 2010-08-16, 10:01
Location: CHINA

#6 Post by bydoingbylearn »

:)

bydoingbylearn
Posts: 29
Joined: Mon, 2010-08-16, 10:01
Location: CHINA

#7 Post by bydoingbylearn »

I don't know weather you can see my words?

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

#8 Post by Michael Onken »

? Besides the question and before the smiley, no ?

Post Reply

Who is online

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