how to get the element's value of each individual frame
Moderator: Moderator Team
-
- Posts: 29
- Joined: Mon, 2010-08-16, 10:01
- Location: CHINA
how to get the element's value of each individual frame
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!!
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.
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
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.
-
- Posts: 29
- Joined: Mon, 2010-08-16, 10:01
- Location: CHINA
-
- Posts: 29
- Joined: Mon, 2010-08-16, 10:01
- Location: CHINA
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 !!
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 !!
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
Two general remarks:
![Smile :)](./images/smilies/icon_e_smile.gif)
- You should always check the return value when using a function/method. This is also true for the DCMTK.
- The 'pos' / 'itemNum' parameter of both findAndGetXXX methods is 0-based, so "1" is the second entry.
![Smile :)](./images/smilies/icon_e_smile.gif)
-
- Posts: 29
- Joined: Mon, 2010-08-16, 10:01
- Location: CHINA
-
- DCMTK Developer
- Posts: 2049
- Joined: Fri, 2004-11-05, 13:47
- Location: Oldenburg, Germany
- Contact:
Who is online
Users browsing this forum: Bing [Bot], Horst Balthasar and 1 guest