Can't call method "Convolve" on unblessed reference at gifaninmation.pl line 47.

2022-02-04 Thread William Torrez Corea
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

Re: Can't call method "Convolve" on unblessed reference at gifaninmation.pl line 47.

2022-02-04 Thread Andrew Solomon
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

Re: Can't call method "Convolve" on unblessed reference at gifaninmation.pl line 47.

2022-02-04 Thread William Torrez Corea
result is wrong. Can't call method "Convolve" on unblessed reference at gifaninmation.pl > line 47. > I don't know in what part I am confused. On Fri, Feb 4, 2022 at 8:34 AM Andrew Solomon wrote: > Is this what you're looking for? > > https://metacpan.or

Re: Can't call method "Convolve" on unblessed reference at gifaninmation.pl line 47.

2022-02-04 Thread David Mertens
ew = convolve $x, $kernel >> >> But when I declare the function in my code the result is wrong. > > Can't call method "Convolve" on unblessed reference at gifaninmation.pl >> line 47. >> > > I don't know in what part I am confused. > &g

Re: Can't call method "Convolve" on unblessed reference at gifaninmation.pl line 47.

2022-02-04 Thread William Torrez Corea
Mertens wrote: > 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 anima

Re: Can't call method "Convolve" on unblessed reference at gifaninmation.pl line 47.

2022-02-04 Thread David Mertens
push(@$q, @$p); # push the images from object p onto object q >> @$p = (); #delete the images but not the object p >> $p->Convolve([1, 2, 1, 2, 4, 2, 1, 2, 1]); >> > > On Fri, Feb 4, 2022 at 9:41 AM David Mertens > wrote: > >> The issue isn't having th