Place this file in the same folder as the image you want blurred, and name the image img.jpg.
The output will be in blurred.jpg.
Increase the value of r
on line 27 to make it more blurry.
- add multithreading
- average color mustnt be completely re-calculated for each pixel. Only the neighbouring pixels that differ need to be re-calculated