Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

They'd probably answer: you need to be using 2D FFT convolution. ;-P


When I was searching for a very fast Gaussian blur algorithm to implement into my 2d canvas library, I stumbled across some code[1] which does a magnificent job by using something called an Infinite Impulse Response[2] filter - something that comes from the world of audio, I believe?

The best bit from my POV is that the work is all done on the CPU with no need to care about webGL/shaders/etc.

[1] - https://github.com/nodeca/glur/blob/master/index.js

[2] - https://en.wikipedia.org/wiki/Infinite_impulse_response




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: