I think I'm doing what I'm told in the doc, but I'm getting an error. Doc says,
But I get an error in the following script:The EvaluateImages() method applies an arithmetic, logical or relational expression to a set of images. For example,
$p = $image->EvaluateImages('mean');
averages all the images associated with object $image.
Instead it dies without the warning with the following output:
Code: Select all
use Image::Magick; $images = new Image::Magick; $notok = $images->Read("rose:", "rose:"); die "on roses: $notok" if $notok; printf("\$images contains %d rosey images\n", scalar(@$images)); $image = $images->EvaluateImages('mean'); print "I never get here and I don't even get a warning.\n"; $images->Write("rosey.png"); $image->Write("rosey-mean.png");
Is it me? I'm using ImageMagick 7.0.7-15 Q16 x86_64 2018-01-17 on Centos 6.9 with perl v5.10.1.$images contains 2 rosey images
Usage: Image::Magick::Q16HDRI::EvaluateImages(ref) at EvaluateImagesTest.plx line 9.