DICOM @ OFFIS

Discussion Forum for OFFIS DICOM Tools - For registration, send email with desired user name to the OFFIS DICOM team
It is currently Sat, 2017-09-23, 22:54

All times are UTC + 1 hour




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: modifying pixel data
PostPosted: Tue, 2011-04-12, 08:25 
Offline

Joined: Mon, 2011-04-11, 18:51
Posts: 5
Hi everyone,

I'm new to DICOM and I have still some questions after reading the standard.

I am working with different DX images and I would like them to share the same caracteristics (pixel spacing, bits allocated, ....)

My idea was to create a BMP file from the dicom image pixel data after having applicated the Modality and VOI LUT.

Then with the BMP file, I will be able to modify data and display it.

To finish, I wanted to convert this BMP file into a Secondary Capture (without modality or VOI because it is a single frame image).


Is this correct?

thanks in advance.

JBO


Top
 Profile  
 
 Post subject:
PostPosted: Tue, 2011-04-12, 17:17 
Offline
ICSMED DICOM Services
ICSMED DICOM Services

Joined: Fri, 2004-10-29, 21:38
Posts: 2217
Location: Oldenburg, Germany
If I understand your posting correctly, you would like to do all this without "real" programming, i.e. using the existing DCMTK command line tools only?


Top
 Profile  
 
 Post subject:
PostPosted: Thu, 2011-04-14, 12:08 
Offline

Joined: Mon, 2011-04-11, 18:51
Posts: 5
Hi,

For example, I want to modify pixel spacing. So my idea was to extract pixel datas. Put them into a matrix.

Then If I modify pixel spacing it will add rows or columns. So it will be easier to modify it thanks to a matrix.

I hope I am clear.


Top
 Profile  
 
 Post subject:
PostPosted: Thu, 2011-04-14, 19:28 
Offline

Joined: Mon, 2009-02-23, 19:57
Posts: 292
The only way to do this is by code, with c++

Here's the code I'm using to modify pixel data:

http://forum.dcmtk.org/viewtopic.php?t=2898


Top
 Profile  
 
 Post subject:
PostPosted: Thu, 2011-04-14, 20:17 
Offline
ICSMED DICOM Services
ICSMED DICOM Services

Joined: Fri, 2004-10-29, 21:38
Posts: 2217
Location: Oldenburg, Germany
If the pixel data values are modified by some other means, you could also use dcmodify to perform the modifications on the DICOM data elements.


Top
 Profile  
 
 Post subject:
PostPosted: Fri, 2011-04-15, 14:58 
Offline

Joined: Mon, 2011-04-11, 18:51
Posts: 5
Hi,

thanks, I'm going to try it as soon as possible.


Top
 Profile  
 
 Post subject:
PostPosted: Mon, 2011-04-18, 11:04 
Offline
DCMTK Developer

Joined: Fri, 2004-11-05, 13:47
Posts: 1599
Location: Oldenburg, Germany
You can also modify large attribute values like (uncompressed) pixel data with dcmodify, by using the option "-if --insert-from-file".

Best Regards,
Michael


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 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:  
cron
Powered by phpBB® Forum Software © phpBB Group