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

William Torrez Corea <[email protected]>
Newsgroups gmane.comp.lang.perl.beginners
Message-ID <CAGiORHdmsWZ=1zCX9kggZdZX+R2PrT=oY7R_T=r0dX70oK6Umg@mail.gmail.com>
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 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 <[email protected]> wrote:

> 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 <[email protected]>
> 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 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 use Image::Magick;use Imager;*
>>
>>
>>
>>
>> --
>>
>> With kindest regards, William.
>>
>> ⢀⣴⠾⠻⢶⣦⠀
>> ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
>> ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
>> ⠈⠳⣄⠀⠀⠀⠀
>>
>>
>
> --
> Andrew Solomon
> Director, Geekuni <https://geekuni.com/>
> P: +44 7931 946 062
> E: [email protected]
>


-- 

With kindest regards, William.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.