Extract information from DICOM images

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
terror

Extract information from DICOM images

Post by terror »

Hi all,
I need to extract information like Patient ID, Patient Name, slice number etc from DICOM images. How can this be done? I'm using MagickWand C implementation of ImageMagick. Can someone help me plz?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Use MagickGetImageProperty() to get DCM properties. First try
  • identify -verbose image.dcm
and you will get the property names. You can then get the value associated with the property name with MagickGetImageProperty().
Post Reply