VOOZH about

URL: https://www.javacodegeeks.com/2013/10/android-image-filters.html

⇱ 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 ....
I agree to the Terms and Privacy Policy

Thank you!

We will contact you soon.

πŸ‘ Photo of Ketan Parmar
Ketan Parmar
October 21st, 2013Last Updated: October 18th, 2013
6 643 1 minute read

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
Subscribe

This site uses Akismet to reduce spam. Learn how your comment data is processed.

6 Comments
Oldest
Newest Most Voted
11 years ago

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?

0
Reply
abid
11 years ago
Reply to  yaowaret

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)

0
Reply
Ankit
11 years ago

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

0
Reply
Dharmendra
10 years ago

nice post…very helpful…for image effects….

0
Reply
inzi
10 years ago

helpful post. i also want to add some warp and funny effects to my app. can please help me. thanks in andvance

0
Reply
9 years ago

Hi I would like create a project on photo convert to sketch and some image filter but I new to it so can u send me the code and step to do it.

0
Reply
Back to top button
Close
wpDiscuz