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, 21:29

All times are UTC + 1 hour




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

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
Code:
 dcmodify.exe -if "(0029,1030)=BINARYFILE" DICOMFILE


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


Top
 Profile  
 
PostPosted: Thu, 2017-10-26, 13:42 
Offline

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.

viewtopic.php?f=1&t=4643


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

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

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.

Best,
Michael


Top
 Profile  
 
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: Bing [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