DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Mon, 2017-12-18, 17:34

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri, 2017-09-15, 13:12 
Offline

Joined: Mon, 2017-07-17, 18:13
Posts: 2
Hi,

I try to insert a Sequence Item in a SmartPtr_DCMDatSet. I tried it the following way:
Code:
DcmItem* dicomItem = new DcmItem(DCM_LongTrianglePointIndexList, triangleVertices.size());      
if (datasetPointer->insertSequenceItem(DCM_SurfaceMeshPrimitivesSequence, dicomItem).bad()) {
      std::cout << "Surface Mesh Primitives Sequence (0066, 0013) can not be generated.\n";
}


It seemed to work, but when I tried to read the generated DICOM Tree I get an error called:
Quote:
Cerr: E: DcmSequenceOfItems: Parse error in sequence (0066,0013), found (0066,0041) instead of sequence delimiter (fffe,e0dd)

I thought the "insertSequenceItem" method would create the Sequence, if not already existing and I can just add items to the sequence, but obviously it is not working.

Can anybody tell me what I am ding wrong or how I can add such a sequence delimiter?

Thank you in advance! :)

Julia


Top
 Profile  
 
PostPosted: Fri, 2017-09-15, 21:19 
Offline
DCMTK Developer

Joined: Tue, 2011-05-03, 14:38
Posts: 1882
Location: Oldenburg, Germany
The first line of your code makes no sense: if you want to create an item with the data element LongTrianglePointIndexList, you should create the DcmItem instance without parameters (i.e. use the default constructor) and insert the data element to it.

This Howto might also be helpful (using Google's cache since the OFFIS server seems to be down).


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group