[FIXED] how to achieve effect like photoshop's average blur in android?
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.
An interesting question. And the answer is not a straight forward one.
- Looking around I’ve found this article: How does photoshop calculate the "average blur" (average color) of an image?
- Which points to this article, which has code: http://blog.soulwire.co.uk/code/actionscript-3/extract-average-colours-from-bitmapdata
- This shouldn’t be hard to implement on Android.
- 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)