modifying pixel data

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
JBO
Posts: 5
Joined: Mon, 2011-04-11, 18:51

modifying pixel data

#1 Post by JBO » Tue, 2011-04-12, 08:25

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

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier » Tue, 2011-04-12, 17:17

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?

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

#3 Post by JBO » Thu, 2011-04-14, 12:08

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.

martinrame
Posts: 329
Joined: Mon, 2009-02-23, 19:57

#4 Post by martinrame » Thu, 2011-04-14, 19:28

The only way to do this is by code, with c++

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

viewtopic.php?t=2898

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#5 Post by Jörg Riesmeier » Thu, 2011-04-14, 20:17

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.

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

#6 Post by JBO » Fri, 2011-04-15, 14:58

Hi,

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

Michael Onken
DCMTK Developer
Posts: 1805
Joined: Fri, 2004-11-05, 13:47
Location: Oldenburg, Germany
Contact:

#7 Post by Michael Onken » Mon, 2011-04-18, 11:04

You can also modify large attribute values like (uncompressed) pixel data with dcmodify, by using the option "-if --insert-from-file".

Best Regards,
Michael

Post Reply

Who is online

Users browsing this forum: Baidu [Spider], Bing [Bot] and 1 guest