图像转换
我在这里和其他地方读了很多关于信息转换/扭曲的内容,它们似乎分为两类:在保持原始边界的同时图像像素的扭曲,或者旋转、缩放等转换。想做的事却截然不同。
我想将矩形图像变形为多边形。特别是,我想将一张图像扭曲到美国 50 个国家中的每一个。简单地绘制状态图,然后裁剪掉不适合的图像部分是不可接受的。这些图像有边框,然后有人的脸包含在其中。我确实在内容感知图像调整大小上发现了这篇非常酷的论文(论文),虽然它可以让我保持图像的焦点(脸部)不失真,但它仍然映射到 4 个角。对于我的初始测试,我也不关心脸部变形。
有人有建议吗?欢迎研究论文、代码、维基百科页面、GIMP 插件、软件工具等。
I've been reading a lot about information transformations/distortions on here and elsewhere, and they seem to fall into two categories: distortion of the pixels of the image while maintaining the original boundaries, or transformations like rotation, scaling, etc. What I would like to do is pretty different.
I would like to warp a rectangular image into a polygon. In particular, I want to warp an image into each one of the 50 United States. Simple mapping of the state and then cropping out parts of the image that don't fit in is not acceptable. These images have borders, and then someone's face contained inside of them. I did find this really cool paper on content-aware image resizing (paper), and while it would let me keep the focus of the images (the face) undistorted, it still maps to 4 corners. For my initial test, I don't care about warping the faces too.
Does anyone have suggestions? Research papers, code, Wikipedia pages, GIMP plugins, software tools, etc welcome.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看看ImageMagick 中的多点失真是否适合您。
See if multipoint distortion in ImageMagick can work for you.