如何像FaceGoo一样进行图像处理
我想像这样扭曲一张照片,只需用手指点击屏幕然后滑动,有人有任何想法吗?
I want to twist a photo like that, just use finger to tap on the screen then slide, anyone has any idea about that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
FaceGoo 的底层技术是 OpenGL 纹理映射。脸部的扭曲来自于网格的操纵,该网格的顶点被映射到图像上规则间隔的点。当网格中的点偏离其原始位置时,由于三角形移动,面看起来也在移动。
The underlying technology for FaceGoo is OpenGL texture mapping. The distortions in the face come from manipulation of a mesh whose vertices are mapped to regularly spaced points on the image. When the points in the mesh are displaced from their original location, the face appears to move because the triangles move.