Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Thu, 2018-03-22, 18:17

All times are UTC + 1 hour

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

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

I try to insert a Sequence Item in a SmartPtr_DCMDatSet. I tried it the following way:
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:
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! :)


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

Joined: Tue, 2011-05-03, 14:38
Posts: 1921
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).

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: Majestic-12 [Bot] 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