Modifying DICOM files on the fly.

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Cybergrazer

Modifying DICOM files on the fly.

Post by Cybergrazer »

I would be grateful is someone can confirm if can use ImageMagick to convert from DICOM to DICOM and crop framedata at the same time ?

Thanks you!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Modifying DICOM files on the fly.

Post by magick »

ImageMagick supports reading the DICOM format, but does not write it.
Scorp1us
Posts: 4
Joined: 2010-06-23T13:37:41-07:00
Authentication code: 8675308

Re: Modifying DICOM files on the fly.

Post by Scorp1us »

Magick,

Would it be possible to somehow get IM to convert the pixel data anyway? If I were to feed a DICOM file for reading, then ignoring all the dicom tags, just get the pixel data out... Could that work? I of course would need to take care of generating the DICOM headers for he output file myself.

Thanks!
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Modifying DICOM files on the fly.

Post by magick »

From the command line you can create RAW RGB files with the RGB raw image format:
  • convert image.dcm rgb:image.rgb
Each API has methods for intercepting image pixels after the DICOM image is read.
Post Reply