>> Is it possible to extract meta-information from DICOM images
>
> But of course.  With Magick++ you can extract a named property after you
> read the image with
> image>attribute("dpx:television.vertical_sample_rate"),
> for example.    With MagickCore, you can iterate over the properties like
> this:
>
>   ResetImagePropertyIterator(image);
>   property=GetNextImageProperty(image);
>   if (property != (const char *) NULL)
>     {
>       /*
>         Display image properties.
>       */
>       (void) fprintf(file,"  Properties:\n");
>       while (property != (const char *) NULL)
>       {
>         (void) fprintf(file,"    %c",*property);
>         if (strlen(property) > 1)
>           (void) fprintf(file,"%s: ",property+1);
>         if (strlen(property) > 80)
>           (void) fputc('\n',file);
>         value=GetImageProperty(image,property);
>         if (value != (const char *) NULL)
>           (void) fprintf(file,"%s\n",value);
>         property=GetNextImageProperty(image);
>       }
>     }

Thanks for the answer! Now I have finally reached coding that part, and
the above approach seems to work fine (although it would be nice to have
the property iteration also in C++ interface).

However, as far as I can understand the DICOM properties are actually
identified by a pair of numbers, and the property names like
"dcm:RequestedProcedureDescription" are actully some kind of translations
of that, correct? Is it possible to get also these numbers through the
ImageMagick?

Thanks
Paavo


_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to