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!
Change PixelData and TransferSyntax by my program.
Moderator: Moderator Team
-
- ICSMED DICOM Services
- Posts: 2217
- Joined: Fri, 2004-10-29, 21:38
- Location: Oldenburg, Germany
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.
Who is online
Users browsing this forum: No registered users and 1 guest