Instagram Image Filters on iPhone

后端 未结 4 492
予麋鹿
予麋鹿 2020-12-07 07:00

How does one go about adding image filters in an iPhone application? (similar to what Instagram and picplz have)

相关标签:
4条回答
  • 2020-12-07 07:51

    I think you can also port, most of the C code, from free image processing libraries. And then use pixel based modifications.

    0 讨论(0)
  • 2020-12-07 07:53

    Have you checked simple-iphone-image-processing? It is a “simple C++ class with an Objective-C wrapper that provides a set of common image processing tasks” as well as UIImage conversion. It provides:

    • Canny edge detection
    • Histogram equalisation
    • Skeletonisation
    • Thresholding, adaptive and global
    • Gaussian blur (used as a preprocessing step for canny edge detection)
    • Brightness normalisation
    • Connected region extraction
    • Resizing – using interpolation

    Other C++ open source libraries are:

    1. http://cimg.sourceforge.net/
    2. http://filters.sourceforge.net/

    Edit Also, take a look at this open-source code - https://github.com/OmidH/Filtrr

    0 讨论(0)
  • 2020-12-07 07:54

    Folks,

    I have made an attempt at replicating instagram and photoshop filters using pure CoreGraphics and direct pixel manipulation, not using OpenGL.

    Find this project at:

    https://github.com/esilverberg/ios-image-filters

    ** UPDATE **

    You also should consider this project: https://github.com/gobackspaces/DLCImagePickerController

    0 讨论(0)
  • 2020-12-07 08:00

    Sadly there is no CoreImage library in the iOS SDK so you have to use OpenGLES to do image processing, Apple have an example application that demonstrates several techniques.

    http://developer.apple.com/library/ios/#samplecode/GLImageProcessing/Introduction/Intro.html

    0 讨论(0)
提交回复
热议问题