In computers science, the main idea behind blurring a photo is to set the RGB value of every pixel to the average of all the values of its neighbours.
For more details on what I mean by "blur":
I'm wondering if there is a mathematical relation between eye power and blurriness in pixels - this is because I am trying to create a web app where users can in real time experience the vision of a myopic eye
I'm sorry if this is the wrong stack exchange site, just direct me to the right one! and also feel free to add the right tags cuz this site is new for me and I have a tough time deciding tags.
Thanks!
EDIT 1
CSS filter function This is what I'm going to be using and it says something about Gaussian that I don't really understand. Would be great if you can explain and not just throw an equation in the answer section thanks