Change PixelData and TransferSyntax by my program.

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
roberunix
Posts: 1
Joined: Tue, 2010-05-18, 11:19

Change PixelData and TransferSyntax by my program.

#1 Post by roberunix »

Hi to all, I need help for my software's write. I've used DCMTK tools as guideline.
My intent is to change the element PixelData.
I use ImageMagick to convert a dicom file in a jp2 file ( jpeg 2000 ) ( the conversion is ok ).
I change pixelData after read the jp2 file in memory.
finally i change transfer syntax with jp2' one ( supported by dicom ).
I save file but i can't see it. Do i have to edit my dcm structure ( edit other elements or edit some tags ).
i need help pls!

Thanks you very much!

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 »

Look into the source code of dump2dcm or xml2dcm (current snapshot) and search for "putOriginalRepresentation" in order to get an idea how to fill the pixel sequence with items from external files. Of course, you could also use dcmdump on an existing compressed DICOM image with option --write-pixel, replace the referenced raw file(s) which contain(s) the pixel items and then call dump2dcm.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest