> 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);
}
}
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users