Re: [Pdl-devel] decimate function

2024-06-13 Thread Guillermo P. Ortiz
Thanks to Chris for the inspired information, and to Ed for suggestions about PDL::Transform that I need to review. For now I have a first awful but seems to be a functional version $field is ndarray with doubles [2,$N,$N] $x are the index for $M < $N that I want to decimate my @field_int_f=(); m

Re: [Pdl-devel] decimate function

2024-06-13 Thread chm
If M and N are integers and N%M == 0 then you could use indexing and dimension "tricks" to collect the values for the new pixels to the first dim and then apply your preferred interpolation/smoothing operation. You may find inspiration at https://github.com/PDLPorters/pdl/wiki/Resampling-up-a-

Re: [Pdl-devel] decimate function

2024-06-13 Thread Ed .
Hi Guillermo, Try https://metacpan.org/pod/PDL::Transform#match ? Best regards, Ed From: Guillermo P. Ortiz Sent: 13 June 2024 12:04 AM To: pdl-devel@lists.sourceforge.net ; pdl-gene...@lists.sourceforge.net Subject: [Pdl-devel] decimate function Hello everybo