How to morphing of two images in iphone programming

孤街醉人 提交于 2019-11-29 13:06:32

Your question is not iphone related.. the kind of algorithm you are looking for is language-agnostic since it just work with images.

By the way it's quite complex to morph two images, usually you have to

  • embed a grid of points over the two images that links characteristics that should be morphed. For example if you have two faces you would use a grid that connects eyes, the mouth, ears, the nose, the edge of the face and so on: these two grid tells the morpher how to "translate" a point into another one while blending the two images
  • the previous step can be done automatically (with specific software) or by hand. more points you place better will be your results
  • then you can do the real morphing sequence: basically you do an interpolation between the two images (in which the parameter that you use will decide how much will be the final risult similar to the first or the second image)
  • you should also apply some blending effect to actually create a believable result, always using a parametric function according to the morphing position

You can use UIView animation to transition from one UIView to another. This should provide some sort of lame morphing.

You can use XMRM, which is written in C++: http://www.cg.tuwien.ac.at/~xmrm/

There is no image morphing API in the iOS SDK.

No, there isn't an API for it. You'll have to do it yourself.

...ask a short question, get a short answer...

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!