Page 1 of 1

MagickGetImagePixels for multiple scene images (MagickCore)

Posted: 2007-08-28T11:04:32-07:00
by seanburke1979
I have a tiff with multiple layers (scenes, in the IM parlance). I am looking to get the pixels values of each scene with something like MagickGetImagePixels but I can't figure out how to increment the scene in the wand. Has anyone tried this? Would MagickSetImageScene be the right call?

Thanks!

Sean

Re: MagickGetImagePixels for multiple scene images (MagickCore)

Posted: 2007-08-28T13:01:53-07:00
by magick
To iterate over your images use something like this:

Code: Select all

  MagickResetIterator(magick_wand);
  while (MagickNextImage(magick_wand) != MagickFalse)
    (void) fprintf(stdout,"index %ld scene %lu\n",
      MagickGetIteratorIndex(magick_wand),MagickGetImageScene(magick_wand));