Perlmagick



                    YAMAGUCHI Toshimitsu




eta]       [beta]                 [beta]   [beta]
eta]   [beta]   [beta]   [beta]
eta]   [beta]   [beta]   [beta]
eta]   [beta]   [beta]   [beta]
eta]   [beta]   [beta]   [beta]
eta]   [beta]   [beta]   [beta]
eta]   [beta]   [beta]   [beta]
eta]   [beta]   [beta]   [beta]
eta]   [beta]   [beta]   [beta]
eta]   [beta]   [beta]   [beta]
eta]   [beta]   [beta]   [beta]
eta]   [beta]   [beta]   [beta]
LAYER
                    NAME "route"
                    TYPE LINE
                    ....
                    CLASS
  ...
Image::Magick




eta]   [beta]           [beta]   [beta]
#!/usr/bin/perl
base.png
            use strict;
            use Image::Magick;

            my $baseImage;
            my...
#!/usr/bin/perl
base.png
            use strict;
            use Image::Magick;

            my $baseImage;
            my...
#!/usr/bin/perl
base.png
            use strict;
            use Image::Magick;

            my $baseImage;
            my...
#!/usr/bin/perl
base.png
            use strict;
            use Image::Magick;

            my $baseImage;
            my...
$baseImage = Image::Magick->new;
       $baseImage -> Read("base.png");




eta]   [beta]              [beta]         [bet...
$maskImage = Image::Magick->new;
       $maskImage -> Read("route.png");
       $maskImage -> Transparent(color => '#ff00f...
$baseImage -> Composite(image => $maskImage,
       compose => 'Screen');




eta]          [beta]              [beta]    ...
$baseImage

                             #!/usr/bin/perl

                             use strict;
                       ...
$baseImage

                             #!/usr/bin/perl

                             use strict;
                       ...
$baseImage -> Composite(image => $imageMarks,
       compose => 'Over');
       $baseImage -> Write("out.png");




eta]  ...
Perlmagickを使った画像処理
Upcoming SlideShare
Loading in …5
×

Perlmagickを使った画像処理

828
-1

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
828
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide





















  • Perlmagickを使った画像処理

    1. 1. Perlmagick YAMAGUCHI Toshimitsu eta] [beta] [beta] [beta]
    2. 2. eta] [beta] [beta] [beta]
    3. 3. eta] [beta] [beta] [beta]
    4. 4. eta] [beta] [beta] [beta]
    5. 5. eta] [beta] [beta] [beta]
    6. 6. eta] [beta] [beta] [beta]
    7. 7. eta] [beta] [beta] [beta]
    8. 8. eta] [beta] [beta] [beta]
    9. 9. eta] [beta] [beta] [beta]
    10. 10. eta] [beta] [beta] [beta]
    11. 11. eta] [beta] [beta] [beta]
    12. 12. eta] [beta] [beta] [beta]
    13. 13. LAYER NAME "route" TYPE LINE .... CLASS NAME "0" STYLE SYMBOL "circle" SIZE 100 COLOR 255 0 255 END END END eta] [beta] [beta] [beta]
    14. 14. Image::Magick eta] [beta] [beta] [beta]
    15. 15. #!/usr/bin/perl base.png use strict; use Image::Magick; my $baseImage; my $maskImage; $baseImage = Image::Magick->new; $baseImage->Read("base.png"); route.png $maskImage = Image::Magick->new; $maskImage->Read("route.png"); $maskImage->Transparent(color => '#ff00ff'); $baseImage->Composite(image => $maskImage, compose => 'Screen');
    16. 16. #!/usr/bin/perl base.png use strict; use Image::Magick; my $baseImage; my $maskImage; $baseImage = Image::Magick->new; $baseImage->Read("base.png"); route.png $maskImage = Image::Magick->new; $maskImage->Read("route.png"); $maskImage->Transparent(color => '#ff00ff'); $baseImage->Composite(image => $maskImage, compose => 'Screen');
    17. 17. #!/usr/bin/perl base.png use strict; use Image::Magick; my $baseImage; my $maskImage; $baseImage = Image::Magick->new; $baseImage->Read("base.png"); route.png $maskImage = Image::Magick->new; $maskImage->Read("route.png"); $maskImage->Transparent(color => '#ff00ff'); $baseImage->Composite(image => $maskImage, compose => 'Screen');
    18. 18. #!/usr/bin/perl base.png use strict; use Image::Magick; my $baseImage; my $maskImage; $baseImage = Image::Magick->new; $baseImage->Read("base.png"); route.png $maskImage = Image::Magick->new; $maskImage->Read("route.png"); $maskImage->Transparent(color => '#ff00ff'); $baseImage->Composite(image => $maskImage, compose => 'Screen');
    19. 19. $baseImage = Image::Magick->new; $baseImage -> Read("base.png"); eta] [beta] [beta] [beta]
    20. 20. $maskImage = Image::Magick->new; $maskImage -> Read("route.png"); $maskImage -> Transparent(color => '#ff00ff'); eta] [beta] [beta] [beta]
    21. 21. $baseImage -> Composite(image => $maskImage, compose => 'Screen'); eta] [beta] [beta] [beta]
    22. 22. $baseImage #!/usr/bin/perl use strict; use Image::Magick; ... $imageMarks = Image::Magick->new; marks.png $imageMarks -> Read("marks.png"); $baseImage -> Composite(image => $imageMarks, compose => 'Over'); $baseImage -> Write("out.png"); eta] [beta] [beta] [beta]
    23. 23. $baseImage #!/usr/bin/perl use strict; use Image::Magick; ... $imageMarks = Image::Magick->new; marks.png $imageMarks -> Read("marks.png"); $baseImage -> Composite(image => $imageMarks, compose => 'Over'); $baseImage -> Write("out.png"); eta] [beta] [beta] [beta]
    24. 24. $baseImage -> Composite(image => $imageMarks, compose => 'Over'); $baseImage -> Write("out.png"); eta] [beta] [beta] [beta]

    ×