iOS上图像的脸部2D失真? (类似Fat Booth等) [英] 2D distortion of a face from an image on iOS? (similar to Fat Booth etc.)

查看:59
本文介绍了iOS上图像的脸部2D失真? (类似Fat Booth等)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是想知道是否有人知道一些好的图书馆或教程如何从用户拍摄的图像中获得脸部的2D失真。

I was just wondering if someone knows about some good library or tutorial on how to achieve a 2D distortion of a face taken from an image taken by the user.

我想在Fatify,Oldify,所有那些Fat Booths等中实现类似的效果,因为我正在创建一个应用程序,你会在脸上扔东西,我会在对象时摇晃和移动点击它。

I would like to achieve a similar effect to the one in Fatify, Oldify, all those Fat Booths, etc., because I am creating an app where you will throw something at the face and I would the face to jiggle and move when the object hits it.

我该怎么做?

推荐答案

我发现了一个几乎完全相同的问题这里接受的答案。

I have found an almost identical question here with an accepted answer.

另外,谈到扭曲算法,GIMP使用的算法称为液体重新缩放。你可以在这里找到它并用C / C ++编写,这样你就可以将它集成到你的iOS应用程序中(许可证)允许,我没有检查过。)

Also, speaking about distorsion algorithms there is an algorithm used by GIMP called "liquid rescale". You can find it here and is written in C/C++ so you could integrate it in your iOS App (license permitting, I haven't checked that).

这里也是另一个类似的问题。

Here is another similar question as well.

希望这有助于你开始这个。

Hope that this helps to get you started on this.

编辑:一些例子(即将发布一些代码)

Some examples (will post some code soon)

编辑2:我正在寻找一些代码,我发现了一些博客文章,解释了用于实现液体重新缩放算法的过滤算法。并不容易,我不认为在短时间内没有关于这个主题的事先知识我可以做的不仅仅是分享这个链接。 GIMP实施的作者似乎被称为Shai Avidan(见发布)。我建议您尝试联系他或该领域的其他任何人(请参阅主题)。对不起,如果我帮不了多。

EDIT 2: I was looking for some code and I found some blog posts that explain the filtering algorithms used to implement the liquid rescale algorithm. Is not easy and I don't think in short time and with no prior knowledge on the subject I could do more than sharing this link. The author of the GIMP implementation appears to be called "Shai Avidan" (see this post). I suggest you might try to contact him or anyone else in the field (see wikipedia references on the subject). Sorry if I can't help more.

编辑3:我在数字图像处理原理:基本技术

此外, 是斯坦福大学Bernd Girod教授的数字图像处理课程的链接。有幻灯片和教程。

Also, this is a link to a Digital Image Processing course by Prof. Bernd Girod at Standford University. There are slides and tutorials.

然后我通过Google搜索术语数字图像处理原理春天找到了更多结果。

Then I found some more results by googling the term "Principles of Digital Image Processing spring".

无论如何..这只是为了在我之前想到它时添加一些额外的答案。

Anyway.. this was just to add some extra to the answer as I was thinking about it before.

这篇关于iOS上图像的脸部2D失真? (类似Fat Booth等)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆