Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Fri, 2018-05-25, 10:12

All times are UTC + 1 hour

Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Thu, 2017-09-14, 08:25 

Joined: Wed, 2016-10-19, 13:13
Posts: 22
Hello all,

Can anyone please help me with the following issue: I need to take existing multiframe DICOM files, add additional text and drawings on pictures, and create new multiframe DICOM with the same metainfo as the original existing DICOM.
In C++, I didn’t find any good example of how to write multiframe DICOM. So I’m using C# with dcm2xml.exe to create xml with all the data of the DICOM, creating jpeg pictures frame by frame, and inserting them in pixel-data sequence as pixel-item in the appropriate xml tags.
The problem is when I use xml2dcm.exe to create the DICOM file, the created file is empty, with 2kb only.
The output of xml2dcm is:

I: reading XML input file: C:\converted\temp2.xml
--- libxml parsing ------
I: parsing file-format ...
I: parsing meta-header ...
I: parsing data-set ...
I: writing DICOM output file: C:\Users\Ofir\Desktop\converted\temp2.dcm
D: DcmFileFormat::checkMetaHeaderValue() Version of MetaHeader is ok: 0x0100
D: DcmFileFormat::checkMetaHeaderValue() use new TransferSyntaxUID [JPEG Baseline] on writing following Dataset
D: DcmFileFormat: Found 8 Elements in DcmMetaInfo 'metinf'

a) What am i doing wrong?
b) If there is a more efficient way to do that, i would be more then happy to hear it

Thank you,

PostPosted: Thu, 2017-09-14, 09:21 
DCMTK Developer

Joined: Tue, 2011-05-03, 14:38
Posts: 1938
Location: Oldenburg, Germany
My first question would be: why don't you use a DICOM Presentation State object for this purpose?

Then, more specifically: what is the contents of your "temp2.xml" file?

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: Google [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