[FIXED] how to achieve effect like photoshop's average blur in android?

Issue

I want to do a function like photoshop’s average blur (Filter>Blue>Average)

but I tried something like get average color from image in android,
but really buggy. most image turn out to be black or gray or white.

any lib available? or Is there any app can do this?

the effect just like this.

GOAL:

Solution

An interesting question. And the answer is not a straight forward one.

  1. Looking around I’ve found this article: How does photoshop calculate the "average blur" (average color) of an image?
  2. Which points to this article, which has code: http://blog.soulwire.co.uk/code/actionscript-3/extract-average-colours-from-bitmapdata
  3. This shouldn’t be hard to implement on Android.
  4. However, I do suggest you do not implement this in Java, which is very slow. Rather do this on RenderScript, which is a Google technology designed for this type of missions – a cross architecture, highly optimized C code to handle graphic tasks and image manipulation.

Answered By – Vaiden

Answer Checked By – Timothy Miller (FixeMe Admin)

Leave a Reply

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