I'm using cpanm trying to find a method that contains the function convolve
but I only found the method Imager.
https://metacpan.org/pod/Imager
When I try to declare the method and use it in the code, the result is
always wrong.
I am using the following libraries:
>
>
>
> *#!/usr/local/bin/perl
Is this what you're looking for?
https://metacpan.org/pod/PDL::ImageND
On Fri, Feb 4, 2022 at 2:30 PM William Torrez Corea
wrote:
> I'm using cpanm trying to find a method that contains the function
> convolve but I only found the method Imager.
>
> https://metacpan.org/pod/Imager
>
> When I t
Ready, install the method from https://metacpan.org/pod/PDL::ImageND.
$p->Convolve([1, 2, 1, 2, 4, 2, 1, 2, 1]);
>
According to the function convolve this declaration is of the following way
> $new = convolve $x, $kernel
>
> But when I declare the function in my code the result is wrong.
Can't
The issue isn't having the method, the issue is calling it on an unblessed
reference. Can you show the code that gives this problem?
Btw, my bet is that it's not a matter of having PDL's method. You would use
PDL for number crunching, not gif animation. :-)
David
On Fri, Feb 4, 2022, 10:14 AM Wi
>
> #!/usr/local/bin/perl
> use Image::Magick;
> use PDL::ImageND;
>
> # The script reads three images, crops them, and writes a single image as
> a GIF animation sequence
> my($image,$p,$q);
>
> $image = new Image::Magick;
> $image->Read('Bugs_Bunny.svg.png');
>
> $image->Read('ng-clipart-bugs-bun
Thanks!
The problem here is actually fairly straight forward: $image->[1] is not
defined. To verify this, try running the code below, which is a trimmed
version of what you provided. You'll notice that I added a few print
statements, for $x in the for-loop and for $p after we get it from
$image->[