Open source Image Filter Library----for Android

Source: Internet
Author: User
Tags image filter image processing library

1.GPUImage for Android (recommended)

Gpuimage a wide variety of image filter (image processing) effects based on OpenGL, up to 50

Idea originates from Gpuimage for IOS, which basically includes the most common image processing effects, including: Contrast,hue,

Gamma,brightness,sharpness,emboss,saturation,exposure,shadow,blend and so on,

is a very powerful and easy-to-use image processing library that also supports real-time filters for cameras and cameras,

is GPU-based image acceleration, so the image processing speed is very fast.

Sample Code

With preview:

@OverridePublicvoid OnCreate (FinalBundle savedinstancestate) {Super. OnCreate (Savedinstancestate); Setcontentview (R. layout. activity);Uri Imageuri=...; Mgpuimage= new gpuimage (this); mGPUImage< Span class= "Pl-k" >.setglsurfaceview ((glsurfaceview) Findviewbyid (R< Span class= "pl-k" >.id.surfaceview)); Mgpuimage.setimage (Imageuri); //this loads image on the current thread, should is run in a thread Mgpuimage.setfi Lter (new gpuimagesepiafilter ()); //later when image should be saved Saved:mgpuimage.savetopictures (" Gpuimagenull);        

Without preview:

Gpuimage (context); Mgpuimagesetfilter (gpuimagesobeledgedetection ()); Mgpuimage. SetImage (Imageuri); Mgpuimage. Savetopictures ("Gpuimage" imagewithfilter.jpgnull);      

Note: Because OpenGL ES 2.0 is used, it can only be tested in the real machine. Https://github.com/CyberAgent/android-gpuimage

2.ImageFilterForAndroid

Was written by a Daniel named Dai, Android,ios,windows Phone3 a platform, said

After three months of development has been completed, the use of the development of the language is mainly used c++,java,c#.


It has been formally invested in the production environment. In order to achieve a naming method in three languages, the author uses the phase

The same class name, interface, namespace (package). It is said that as long as you are familiar with one of the platform's Code,

You can easily write the filter code for the other two platforms (the authors promise to add more filter

Mirror effect). The library is based on the LGPL protocol and can be used for free in its own projects and products (including commercial

Project). Of course, you can also privately and the author to discuss cooperation matters

Http://www.cnblogs.com/daizhj/archive/2012/05/15/2501406.html

Https://github.com/daizhenjun/ImageFilterForAndroid

3.Android Built-in filter


Color Filter--http://blog.sina.com.cn/s/blog_5da93c8f01012pkj.html

Using some filter algorithms--http://blog.csdn.net/jingwen3699/article/details/7770287

Android system will have built-in filter function (more than 20 different effects), color matrix colormatrix--Related Introduction


4.OpenCV

The full name is: Open source computer Vision LIBRARY.OPENCV is a cross-platform computer Vision Library based on (open source) release that can be shipped

Line on Linux,windows and Mac OS. It is lightweight and efficient-a series of C functions and a small number of C + + classes, while providing Python,ru

By,matlab and other language interface, realize the image processing and computer vision of a lot of general algorithms. This is not really a library specifically for filters, but

You can use it to achieve a certain amount of filter effects. However, configuration usage is more cumbersome.

http://blog.csdn.net/yanzi1225627/article/details/16917961

Http://blog.csdn.net/sangni007/article/category/1106771/1


5. Some other open source filters

Information is less, the applicable population is not much, currently not recommended, can refer to

Https://github.com/ragnraok/android-image-filter

Http://www.jhlabs.com/ip/filters/index.html

http://phenom.iteye.com/blog/1575975

Open source Image Filter Library----for Android

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.