Image convolution: Difference between revisions

Content added Content deleted
(Added Perl example)
m (→‎{{header|Perl}}: change test image)
Line 1,575: Line 1,575:
my $smoothed = conv2d $image, $kernel, {Boundary => 'Truncate'};
my $smoothed = conv2d $image, $kernel, {Boundary => 'Truncate'};
wpic $smoothed, 'pythagoras_convolution.png';</lang>
wpic $smoothed, 'pythagoras_convolution.png';</lang>
Compare offsite images: [https://github.com/SqrtNegInf/Rosettacode-Perl5-Smoke/blob/master/ref/pythagoras_tree.png pythagoras_tree.png] vs.
Compare offsite images: [https://github.com/SqrtNegInf/Rosettacode-Perl5-Smoke/blob/master/ref/frog.png frog.png] vs.
[https://github.com/SqrtNegInf/Rosettacode-Perl5-Smoke/blob/master/ref/pythagoras_convolution.png pythagoras_convolution.png]
[https://github.com/SqrtNegInf/Rosettacode-Perl5-Smoke/blob/master/ref/frog_convolution.png frog_convolution.png]


=={{header|Perl 6}}==
=={{header|Perl 6}}==