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

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

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/

Resources

  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.

Do you want to know how to develop your skillset to become a Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you two of our best selling eBooks for FREE!

JPA Mini Book

Learn how to leverage the power of JPA in order to create robust and flexible Java applications. With this Mini Book, you will get introduced to JPA and smoothly transition to more advanced concepts.

JVM Troubleshooting Guide

The Java virtual machine is really the foundation of any Java EE platform. Learn how to master it with this advanced guide!

Given email address is already subscribed, thank you!
Oops. Something went wrong. Please try again later.
Please provide a valid email address.
Thank you, your sign-up request was successful! Please check your e-mail inbox.
Please complete the CAPTCHA.
Please fill in the required fields.

Leave a Reply


− 4 = three



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.
Do you want to know how to develop your skillset and become a ...
Java Rockstar?

Subscribe to our newsletter to start Rocking right now!

To get you started we give you two of our best selling eBooks for FREE!

Get ready to Rock!
You can download the complementary eBooks using the links below:
Close