How can I calculate a radial gaussian blur into an array?

edited January 2016 in How To...

https://processing.org/reference/PImage_mask_.html

maskimage allows to use a 2D integer array instead of an image for masking.
I need to calculate a radial blur for different image sizes. How could I calculate the values for the array dynamically?

My images will be all of same size and height.
https://en.wikipedia.org/wiki/Gaussian_function#Two-dimensional_Gaussian_function

Basically I am asking this question for a 1D array in Processing:
http://stackoverflow.com/questions/24390773/how-do-i-make-a-radial-gradient-of-values-in-a-2d-array

Sign In or Register to comment.