imagemagick - Extraction of a part from an image -
i want extract small rectangles image , want convert/roll small rectanges cylinders. no animation required. want have cylinders images.
i using perlmagick api imagemagick.
any help/suggestions shall appreciated.
assuming know x,y coordinates , geometry of rectangles you're trying extract;
use image::magick; ... $image = image::magick->new(); $x = $image->read($filename); die "$x" if "$x"; # 100x100 size of cropped image, +40+40 giving x , y # offsets (i.e. upper-left coordinate of cropped image) $image->crop(geometry=>"100x100+40+40");
you'll have more specific cylinders, if it's think check fred's cylinderize script. examples given imagemagick command-line arguments there's bit of work convert perl equivalent (or call them using perl's exec() function).
Comments
Post a Comment