Sandbox project for different blurring techniques
Switch branches/tags
Nothing to show
Clone or download
Latest commit 67da9e0 Mar 17, 2014

Android blurring sample


Stack Blur v1.0 from

Java Author: Mario Klingemann created Feburary 29, 2004

Android port: Yahel Bouaziz ported april 5th, 2012

This is a compromise between Gaussian Blur and Box blur
It creates much better looking blurs than Box Blur, but is
7x faster than my Gaussian Blur implementation.
I called it Stack Blur because this describes best how this
filter works internally: it creates a kind of moving stack
of colors whilst scanning through the image. Thereby it
just has to add one new block of color to the right side
of the stack and remove the leftmost color. The remaining
colors on the topmost layer of the stack are either added on
or reduced by one, depending on if they are on the right or
on the left side of the stack.
If you are using this algorithm in your code please add
the following line:
Stack Blur Algorithm by Mario Klingemann <>