About Ketan Parmar

Ketan Parmar (aka KPBird) is software engineer with 7 years experience, He is passionate about Java (SE,EE,ME),Android,BlackBerry, Grid Computing, Big Data, UI/UX and Open Source

Android Image Filters


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


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

device-2013-08-30-104130 device-2013-08-30-104059


Different image filters available in Application


effect_watermark effect_tint

effect_smooth effect_sheding_yellow

effect_grayscale effect_sheding_green

effect_sheding_cyan effect_sheding

effect_sepia_green effect_sepia_blue

effect_sepia effect_saturation

effect_round_corner effect_mean_remove

effect_invert effect_hue

effect_gaussian_blue effect_flea

effect_engrave effect_emboss

effect_contrast effect_color_red

effect_gamma effect_color_green

effect_color_depth_64 effect_color_depth_32

effect_color_blue effect_brightness

effect_boost_3 effect_boost_2

effect_boost_1 effect_black

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/


  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


Reference: Android Image Filters from our JCG partner Ketan Parmar at the KP Bird blog.
Related Whitepaper:

Rapid Android Development: Build Rich, Sensor-Based Applications with Processing

Create mobile apps for Android phones and tablets faster and more easily than you ever imagined

Use 'Processing', the free, award-winning, graphics-savvy language and development environment, to work with the touchscreens, hardware sensors, cameras, network transceivers, and other devices and software in the latest Android phones and tablets.

Get it Now!  

Leave a Reply

× nine = 9

Java Code Geeks and all content copyright © 2010-2014, Exelixis Media Ltd | Terms of Use | Privacy Policy
All trademarks and registered trademarks appearing on Java Code Geeks are the property of their respective owners.
Java is a trademark or registered trademark of Oracle Corporation in the United States and other countries.
Java Code Geeks is not connected to Oracle Corporation and is not sponsored by Oracle Corporation.

Sign up for our Newsletter

20,709 insiders are already enjoying weekly updates and complimentary whitepapers! Join them now to gain exclusive access to the latest news in the Java world, as well as insights about Android, Scala, Groovy and other related technologies.

As an extra bonus, by joining you will get our brand new e-books, published by Java Code Geeks and their JCG partners for your reading pleasure! Enter your info and stay on top of things,

  • Fresh trends
  • Cases and examples
  • Research and insights
  • Two complimentary e-books