Front page | perl.beginners |
Postings from February 2022
Re: Can't call method "Convolve" on unblessed reference atgifaninmation.pl line 47.
Thread Previous
|
Thread Next
From:
David Mertens
Date:
February 4, 2022 15:41
Subject:
Re: Can't call method "Convolve" on unblessed reference atgifaninmation.pl line 47.
Message ID:
CA+4ieYUi_cqo2p4M3xJxeFUJMFSsOLV3HCG1cF-U2dtb=_AWrw@mail.gmail.com
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 William Torrez Corea <willitc9888@gmail.com>
wrote:
> 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 <andrew@geekuni.com> 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 <
>> willitc9888@gmail.com> 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: andrew@geekuni.com
>>
>
>
> --
>
> With kindest regards, William.
>
> ⢀⣴⠾⠻⢶⣦⠀
> ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
> ⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
> ⠈⠳⣄⠀⠀⠀⠀
>
>
Thread Previous
|
Thread Next