I want to extract small rectangles from an image and then want to convert/roll the small rectanges into cylinders. No animation required. I just want to have the cylinders as images.
I am using Perlmagick as API for ImagemagicK.
Any help/suggestions shall be appreciated.
Assuming you know the x,y coordinates and geometry of the rectangles you're trying to extract;
You'll have to be more specific about cylinders, but if it's what I think it is then check Fred's Cylinderize script. The examples given are ImageMagick command-line arguments so there's a bit of work to convert it to the perl equivalent (or you could call them using Perl's exec() function).