Image convolution: Difference between revisions

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

edits