[英]How to implement photo effects in iPhone app?
Is it possible to bring the photo Booth effects (twirl, squeeze, bulge) for an image?是否可以为图像带来 Photo Booth 效果(旋转、挤压、凸出)?
The normal way in OS X to apply such filters is Core Image.在 OS X 中应用此类过滤器的常规方法是 Core Image。 Core Image isn't part of the current iPhone SDK, but Apple have announced that it'll be in iOS 5. That's currently under NDA so can't be discussed beyond the detail Apple have made public on sites such as this, but given what is public I think it'd be a very good idea to ask again or to update your question once iOS 5 is released.
Core Image 不是当前 iPhone SDK 的一部分,但 Apple已经宣布它将在 iOS 5 中。这目前处于 NDA 之下,因此除了 Apple 在此类网站上公开的细节之外无法进行讨论,但鉴于什么是公开的 我认为在 iOS 5 发布后再次询问或更新您的问题是一个非常好的主意。
In the meantime, if you want to do the effect live you're probably best off uploading the image to OpenGL and applying some sort of pixel shader, which is quite an undertaking but previous StackOverflow answers such as this one are likely to be helpful.同时,如果您想实时制作效果,您可能最好将图像上传到 OpenGL 并应用某种像素着色器,这是一项艰巨的任务,但之前的 StackOverflow 答案(例如这个)可能会有所帮助。
Core Image is now part of iOS 5. It has many filters you can use for creating photo effects by simply combining them. Core Image 现在是 iOS 5 的一部分。它有许多过滤器,您可以通过简单地组合它们来创建照片效果。 You can use Photo Effects SDK that is built on Core Image.
您可以使用基于 Core Image 构建的Photo Effects SDK 。 It comes with 35+ ready to use photo effects.
它带有 35+ 准备使用的照片效果。 You can also easily create your own photo effects with the builtin filter chaining support.
您还可以使用内置的滤镜链接支持轻松创建自己的照片效果。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.