Reading individual pixels

The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Post Reply
mercatore
Posts: 6
Joined: 2015-04-03T09:03:20-07:00
Authentication code: 6789

Reading individual pixels

Post by mercatore »

Hi,

Apologies, I am sure looking for a very simple answer but I have now been browsing for 3 hours and cannot figure it out. Here is what I need: I am writing C program using MagicWand, read an image an converted it (greyscale, resized)

MagickTransformImageColorspace(wand, GRAYColorspace);
MagickScaleImage(wand,DHASH_WIDTH,DHASH_HEIGHT);

My understanding is that I know have an image with a single 8 bit channel. The only thing I would like to do is the most simple method to access my individual integer values of my grey-scaled pixels.

Thanks for anyone pointing me to the right answer.

Thanks,
Mercator
Post Reply