Home » Android » Android Core » Android Image Filters

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 our best selling eBooks for FREE!

1. JPA Mini Book

2. JVM Troubleshooting Guide

3. JUnit Tutorial for Unit Testing

4. Java Annotations Tutorial

5. Java Interview Questions

6. Spring Interview Questions

7. Android UI Design

and many more ....

 

3 comments

  1. I would like to create android app that can analyze body from camera and also create the t-shirt or dress into people in the pictures. What sdk or tools that I have to use in my project? Or How do I start?

    • you can simply take a picture with android built in camera ,, and merge this pic with different dressing pics using bitmap function bitmap mergefunctn(bitmap bodypic , bitmap dresspic)

  2. Can you please give sample code for embedding images.
    Thanks in advance.

Leave a Reply

Your email address will not be published. Required fields are marked *

*


Want to take your Java Skills to the next level?
Grab our programming books for FREE!
  • Save time by leveraging our field-tested solutions to common problems.
  • The books cover a wide range of topics, from JPA and JUnit, to JMeter and Android.
  • Each book comes as a standalone guide (with source code provided), so that you use it as reference.
Last Step ...

Where should we send the free eBooks?

Good Work!
To download the books, please verify your email address by following the instructions found on the email we just sent you.