在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:esilverberg/ios-image-filters开源软件地址:https://github.com/esilverberg/ios-image-filters开源编程语言:Objective-C 99.0%开源软件介绍:ios-image-filtersThese days everyone seems to want instagram-style filters for images on iPhone. The way to do this (I think) is to examine how people have implemented equivalent filters in Photoshop and code them in objective c. Unfortunately, the imaging libraries are all geared for gaming. For non-game developers who just want simple image processing, this is overkill. It's like photoshop for the UIImage class!I've worked hard to mimic the photoshop color adjustment menus. Turns out these are clutch in pretty much all the best image filters you can name right now (lomo, polaroid). For example, if you want to manipulate levels, here's your method, built straight onto the UIImage class:
An API just like that cool menu in Photoshop! Want to do a curves adjustment to mimic a filter you saw on a blog? Just do this:
The problem with my curves implementation is that I didn't use the same kind of curve algorithm as Photoshop uses. Mainly, because I don't know how, and other than the name of the curve (bicubic) all the posts and documentation I simply don't understand or cannot figure out how to port to iOS. But, the curves I use (catmull-rom) seem close enough. How to integrateCopy and paste the ImageFilter.* and Curves/* classes into your project. It's implemented a Category on UIImage. How to use
What it looks likeWhat is still broken
Other optionsI tried, but mostly failed, to understand these libraries. Simple Image Processing is too simple, and uses a CPP class to accomplish its effects, as does CImg. I find the CPP syntax ghoulish, to say the least. I stared at the GLImageProcessing code for hours, and still don't understand what's going on. Guess I should have taken CS244a... UPDATE: Core image filters in iOS5 are probably what you want to use going forward, though they are not backwards-compatible with iOS4 or earlier.
LicenseMIT License, where applicable. I borrowed code from this project: http://sourceforge.net/projects/curve/files/ , which also indicates it is MIT-licensed. http://en.wikipedia.org/wiki/MIT_License There is also now code adapted from ImageMagick, whose license may be found at: http://www.imagemagick.org/script/license.php |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论