赋予 UIImage Stratch 平滑效果 [英] Give smooth effect of UIImage Stratch

查看:28
本文介绍了赋予 UIImage Stratch 平滑效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个应用程序,我需要以下效果.我不知道热要开始工作.如果有人知道我实现这种效果的第一步是什么,那么请指导我如何像这样拉伸头发.

I am Creating one application and i required following effects. I don't know hot to start work. if any one know what is my first step for this effect then please guide me for how to stretch Hair like this.

效果链接1

效果链接2

我使用了以下链接和教程,但没有成功.

I used following link and tutorial but not succeeded.

http://code.google.com/p/faceworkshop/

http://code.google.com/p/imgwarp-opencv/

http://docs.opencv.org/doc/tutorials/ios/table_of_content_ios/table_of_content_ios.html#table-of-content-ios

我想,我会走错路...请帮帮我.

I think, I am going to wrong way...Plz help me.

推荐答案

效果看起来就像是一个带有纹理的 OpenGL 对象,您可以在其中更改最靠近触摸点的顶点坐标.OpenGL 对象必须由与形式匹配的三角形构建,这可能是基于头发图像完成的.

The effect look alike it's an OpenGL object with a texture where you change the coordinates of the vertex nearest to the touch point. The OpenGL object has to be constructed out of triangles matching the form, which is probably done based on the hair image.

这篇关于赋予 UIImage Stratch 平滑效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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