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
MagickGetImagePixels for multiple scene images (MagickCore)
Re: MagickGetImagePixels for multiple scene images (MagickCore)
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));