Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/Image-convolution/Perl/image-convolution.pl
Normal file
11
Task/Image-convolution/Perl/image-convolution.pl
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
|
||||
use PDL;
|
||||
use PDL::Image2D;
|
||||
|
||||
my $kernel = pdl [[-2, -1, 0],[-1, 1, 1], [0, 1, 2]]; # emboss
|
||||
|
||||
my $image = rpic 'pythagoras_tree.png';
|
||||
my $smoothed = conv2d $image, $kernel, {Boundary => 'Truncate'};
|
||||
wpic $smoothed, 'pythagoras_convolution.png';
|
||||
Loading…
Add table
Add a link
Reference in a new issue