Page 1 of 1

Modifying DICOM files on the fly.

Posted: 2010-04-02T01:46:51-07:00
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!

Re: Modifying DICOM files on the fly.

Posted: 2010-04-02T05:10:09-07:00
by magick
ImageMagick supports reading the DICOM format, but does not write it.

Re: Modifying DICOM files on the fly.

Posted: 2010-06-24T07:36:22-07:00
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!

Re: Modifying DICOM files on the fly.

Posted: 2010-06-24T08:19:28-07:00
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.