Sep 6, 2013

Android Image Filters

Introduction

Image Filter allows you to add various effects on image.

There are mainly two purpose of Image Processing 
1. Image Understanding: It is used to identify content of image, weather image has human faces, objects (bus, train, etc.), measure dimension of objects,etc. OpenCV (Open Source Computer Vision Library) is one of the main library used for Image Understanding. 
2. Image Beautify : It is used to beautify image by adding different filters, adjust colour, adjust contrast, etc..

Android provides two options for Image Filters/Processing
1. Using SDK with Java Code,Android SDK has "android.graphics" package which contains classes related to Image Processing. 
2. Using NDK with C/C++ Code.

List of classes from android.graphics


Application

This article explains simple Android application which demonstrates 30 different image filters. Application has one button to select image from gallery, bottom strip contains visual representation of effect then simply click on effect to apply into your selected photo. Application will apply selected effect and store image in root folder of SDCard with effect name.
The entire logic of Image filter/processing is written in pure java (without NDK/C++). 


Application Screen shots
Image source : http://www.theotherhome.com/images/PackageImages/Large/2013-03-0811-37-01.jpg

Different image filters available in Application




















Download Source Code

I would like to thanks Mr Peter Huston (http://petehouston.com/) for providing Android Image Filters tutorials in his blog.

Original Source Code: http://xjaphx.wordpress.com/learning/tutorials/

References
1. http://www.jhlabs.com/ip/filters/
2. http://developer.android.com/reference/android/media/effect/EffectFactory.html
3. https://code.google.com/p/android-image-filtering/
4. http://xjaphx.wordpress.com/learning/tutorials/
5. https://code.google.com/p/android-image-filtering/
6. https://github.com/ragnraok/android-image-filter

5 comments:

  1. I am unable to download the code. The code is not available to download. there is only file README.md file only in the zip. Please help me...

    ReplyDelete
  2. kpbird4:51 PM

    Hello Ravi,

    Please check following link

    https://github.com/kpbird/Android-Image-Filters

    Thank You

    ReplyDelete
  3. thnks...

    ReplyDelete
  4. sagar raiyani11:35 AM

    i want vignette-image-effect in android plz help

    ReplyDelete
  5. Rohann Prasad5:33 PM

    Is there a sample APp on which I can test it?

    ReplyDelete