简体   繁体   English

影像转换

[英]Image Transformation

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. 特别是,我想将图像扭曲到50个美国中的每个国家。 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. 我确实在内容感知的图像大小调整 )上找到了这本非常酷的论文,尽管它可以使图像(面部)的焦点保持不失真,但它仍映射到4个角。 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. 欢迎研究论文,代码,Wikipedia页面,GIMP插件,软件工具等。

查看ImageMagick中的多点失真是否可以为您工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM