从图像中提取一部分
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
假设您知道要提取的矩形的 x,y 坐标和几何形状;
您必须对气缸进行更具体的说明,但如果这是我认为的那样,请检查 Fred 的 Cylinderize 脚本。给出的示例是 ImageMagick 命令行参数,因此需要做一些工作才能将其转换为 Perl 等效项(或者您可以使用 Perl 的 exec() 函数调用它们)。
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).