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 » Mon, 2011-04-11, 08:10

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 » Mon, 2011-04-11, 08:23

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 » Mon, 2011-04-11, 08:39

Ha-ha,you are my sunshine,thanks!

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

#4 Post by bydoingbylearn » Thu, 2011-04-28, 07:29

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 » Thu, 2011-04-28, 08:27

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 » Tue, 2011-05-03, 08:48

:)

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

#7 Post by bydoingbylearn » Thu, 2011-06-09, 07:50

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

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

#8 Post by Michael Onken » Fri, 2011-06-10, 13:18

? Besides the question and before the smiley, no ?

Post Reply

Who is online

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