简体   繁体   English

iPhone中的图像处理

[英]Image Processing in iPhone

Actually I am adding Image Processing Feature in my iPhone Application It should do Brightness, Contrast, Sharpen, Exposure.... 实际上我在我的iPhone应用程序中添加图像处理功能它应该做亮度,对比度,锐化,曝光....

But i am not able to Find any article/Tutorial on the Internet. 但我无法在互联网上找到任何文章/教程。 Will you please help me to find any tutorial or tell me how can i implement the iPhone View Based Application. 你能不能帮我找到任何教程或者告诉我如何实现基于iPhone View的应用程序。

I have found 1 link http://www.iphonedevsdk.com/forum/iphone-sdk-development/10094-adjust-image-brightness-contrast-fly.html its worked also for Brightness but its not working on iPad. 我找到了1个链接http://www.iphonedevsdk.com/forum/iphone-sdk-development/10094-adjust-image-brightness-contrast-fly.html它也适用于Brightness,但它不适用于iPad。

So Suggest something that i can start with my Image Processing Logic. 所以建议我可以从我的图像处理逻辑开始。

Thanks 谢谢

Rick Jackson 里克杰克逊

I personally like the approach in the GLImageProcessing project from Apple's sample code. 我个人喜欢Apple的示例代码中的GLImageProcessing项目中的方法。 Check it out . 看看吧

There are a few libraries that support image processing in Quartz. 有一些库支持Quartz中的图像处理。 There are even a few categories on UIImage to do some basic stuff. 在UIImage上甚至有一些类别可以做一些基本的东西。

The following are a few examples: 以下是几个例子:

But as said before by @Felz those libraries are slow because they use the quartz codebase, which isn't that fast (for example: changing the saturation of an image with a resolution of 1024x1024 might take up to 4 to 8 seconds, depending on which device your using). 但正如@Felz之前所说的那样,这些库很慢,因为它们使用石英代码库,速度不是那么快(例如:改变分辨率为1024x1024的图像的饱和度可能需要4到8秒,具体取决于你使用哪个设备)。

If your project is iOS 5 or higher then you should definitely consider using CoreImage 如果您的项目是iOS 5或更高版本,那么您一定要考虑使用CoreImage

You can try GPUImage framework created by Brad Larson . 您可以尝试Brad Larson创建的GPUImage框架。 It includes awesome image filters and also easy to use. 它包括很棒的图像过滤器,也很容易使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM