I'm trying to use MagickWand to read in a .pgm file and get the grayscale
intensities of each pixel into an array, but I'm having trouble figureing
out how to get that pixel data once I read in the image. I'm using
MagickReadImage() which works pretty well and I've verified it understands
the image correctly by outputting it again as a .png file. But I've found
the documentation lacking. I guess I can use GetImageFromMagickWand() to get
an Image stuct, but I can't find the documentation for whats inside the
Image and how to access the pixels. I've found this function called
AcquireImagePixels(), but that gives me an array of PixelPackets and I can't
find documentation for what a PixelPacket consists of and how to access its
members. Plus, I have to somehow detect the image dimensions and generate
this ExceptionInfo object. How do I then get those pixels into an int array?


Has whoever is responsible for maintaining the documentation considered
using something more similar to JavaDoc or Doxygen? Could make people's
lives much easier.

Thanks much for your help!
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to