用于iphone sdk开发的图像过滤器
我计划开发一个 iPhone 应用程序,它使用图像滤镜,如模糊、锐化等。我注意到这个问题的方法很少,
使用 openGL ES。我什至在苹果 iPhone 开发网站上找到了示例代码。对于从未使用过 openGL 的人来说有多容易?图像滤镜可以使用 openGL 框架实现吗?
Apple iPhone 开发网站上也发布了 Quartz 演示。有人用过这个框架来做图像处理吗?这种方法与 openGL 框架相比如何?
不要使用openGL和Quartz框架。基本上从图像中访问原始像素并自己进行操作。
利用任何自定义的图像处理库,例如此 一。您知道其他类似的库吗?
任何人都可以提供关于哪个选项最好的见解/建议吗?非常感谢您的意见。谢谢!
I am planning to develop an iphone app which makes use of image filters like blurring, sharpening,etc. I noticed that there are few approaches for this one,
Use openGL ES. I even found an example code on apple iphone dev site. How easy is openGL for somebody who has never used it? Can the image filters be implemented using the openGL framework?
There is a Quartz demo as well posted on apple iphone dev site. Has anybody used this framework for doing image processing? How is this approach compared to openGL framework?
Don't use openGL and Quartz framework. Basically access the raw pixels from the image and do the manipulation myself.
Make use of any custom built image processing libraries like this one. Do you know of any other libraries like this one?
Can anybody provide insights/suggestions on which option is the best? Your opinions are highly appreciated. Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这是图像过滤的另一种选择。他们使用核心图像框架提供了大量过滤器。
http://www.binpress.com/app/photo-effects -sdk-for-ios/801
Here is another alternative for image filtering. They provide lots of filters using core image framework.
http://www.binpress.com/app/photo-effects-sdk-for-ios/801
Quartz 在 iPhoneOS 上尚无法访问 Core Image,因此您无法像在 MacOS 上那样使用 Core Image 滤镜。
我会选择一个专门的图书馆。如果您不将 OpenGL ES 用于其他用途,那么您一定不想错过 OpenGL ES 中的大量开销。
Quartz doesn't have access to Core Image yet on the iPhoneOS so you can't use the Core Image filters like you do on MacOS.
I would go with a dedicated library. There's a lot of overhead in OpenGL ES you don't want to miss with if you're not using it for anything else.
如果您的应用程序支持 iOS6,请使用 CoreGraphics 和 CoreImage。它包含许多过滤器和一些其他方法,通过它们您可以获得其他复合过滤器。
如果您不是使用 iOS6,则可以使用 GPUImage framwork 或 ImageMagick。
最后一个选项是操纵像素值,但它需要一个过滤算法来在图像上添加过滤器
If your App has a support of iOS6 the use CoreGraphics and CoreImage. It contains many filters and some other approaches through which yo get other composite filters.
If you r not on iOS6 the you can use GPUImage framwork or ImageMagick.
and the last option is to manipulating pixels values, but it needs an filter algorithm to add filters on Image