get not working?
Posted: 2009-10-09T06:39:13-07:00
From http://www.imagemagick.org/script/perl- ... -attribute I'm trying to use ->Get( but only get the error message:
Can't locate object method "Get" via package "Exception 410: unrecognized option `metric'" (perhaps you forgot to load "Exception 410: unrecognized option `metric'"?)
I've even tried the sample program:
use Image::Magick;
$logo=Image::Magick->New();
$logo->Read('logo:');
$sharp=Image::Magick->New();
$sharp->Read('logo:');
$sharp->Sharpen('0x1');
$difference=$logo->Compare(image=>$sharp, metric=>'rmse');
print $difference->Get('error'), "\n";
and get the same error.
I'm running ImageMagick 6.2.8.0-4 and the associated ImageMagick-perl-6.2.8.0-4, is ->Get( supposed to be in there?
Thanks!
Can't locate object method "Get" via package "Exception 410: unrecognized option `metric'" (perhaps you forgot to load "Exception 410: unrecognized option `metric'"?)
I've even tried the sample program:
use Image::Magick;
$logo=Image::Magick->New();
$logo->Read('logo:');
$sharp=Image::Magick->New();
$sharp->Read('logo:');
$sharp->Sharpen('0x1');
$difference=$logo->Compare(image=>$sharp, metric=>'rmse');
print $difference->Get('error'), "\n";
and get the same error.
I'm running ImageMagick 6.2.8.0-4 and the associated ImageMagick-perl-6.2.8.0-4, is ->Get( supposed to be in there?
Thanks!