Variations on symmetric nearest neighbour smoothing

jashkenas | 92 points

After some googling this kind of looks like "inverse distance weighted interpolation." Is that at all similar? Seems well trodden ground

https://pro.arcgis.com/en/pro-app/help/analysis/geostatistic...

https://en.wikipedia.org/wiki/Inverse_distance_weighting

unlinked_dll | 4 years ago

This is a neat article with some good experimentation, but... This is essentially someone seeing the precursor to the bilateral filter for the first time without ever having heard of a bilateral filter before.

A bilateral filter weights surrounding pixels by how close in value they are. This ends up creating a smoothing effect from soft clustering. Take a look at the 'rolling guidance filter' for an effect when used iteratively.

BubRoss | 4 years ago

Really simple filters can yield very impressive results on images.

This makes me think of deep learning "style transfer" effects. They're nice but so are artistic filters that long predate these things and are tremendously simpler.

joe_the_user | 4 years ago

It seems to create aliasing artefacts at edges. I wonder if this can be suppressed by scaling up the image and the filter radius and then scaling back down?

jmpeax | 4 years ago

I implemented this in ShaderToy if anyone wants to see it run in real-time:

https://www.shadertoy.com/view/WlGGzt

fenwick67 | 4 years ago

Fascinating. Couldn't help but think that the result looks a lot like some recent game shaders, for grass and landscape, like seen in the witness. Maybe Jonathan can chime in.

keyle | 4 years ago