Image Filter allows you to add various effects on image. There are mainly two purpose of Image Processing:
- 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.
- 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
- Using SDK with Java Code,Android SDK has “android.graphics” package which contains classes related to Image Processing.
- Using NDK with C/C++ Code.
List of classes from android.graphics
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
Different image filters available in Application
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/