Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Fri, 2018-03-23, 04:21

All times are UTC + 1 hour

Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Tue, 2017-10-24, 15:03 

Joined: Fri, 2009-11-20, 08:26
Posts: 3
Is it possible with one of the shipped DCMTK commandline-tools to extract private binary data from a dcm file?

For example:
A private tag has been written to an existing dcm-file using dcmodify.exe
 dcmodify.exe -if "(0029,1030)=BINARYFILE" DICOMFILE

What would be the other way around to extract the binary-file from the resulting DICOMFILE?

PostPosted: Thu, 2017-10-26, 13:42 

Joined: Tue, 2017-10-10, 09:44
Posts: 8
i did the same thing a few days ago.. i don't know about command line tools though.


PostPosted: Fri, 2017-10-27, 11:47 
DCMTK Developer

Joined: Fri, 2004-11-05, 13:47
Posts: 1664
Location: Oldenburg, Germany

you can use dcmdump. Option +L makes sure all tags (i.e. also those with very long tag values) will be dumped.
In general you can send dcmdump output to a file (dcmdump DICOMFILE > output.txt).
If you want to extract only selected tags, you can additionally use dcmdump's +P option to select the tag of interest, e.g.
dcmdump +L +P "(0029,1030)" DICOMFILE. You can also repeat +P multiple times to select more than one tag.

I don't see another way to extract the private data using the commandline tools.


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 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