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 »

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 »

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 »

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: 347
Joined: Mon, 2009-02-23, 19:57

#4 Post by martinrame »

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 »

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 »

Hi,

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

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

#7 Post by Michael Onken »

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: Bing [Bot], Google [Bot] and 1 guest