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

When you calculate the next pixel, do you use the updated value of the previous pixel or do you use the original?


Aside from making conceptual sense, using the original value has the nice property that there's no dependence between the calculation of separate pixels, so the filtered image can be computed fully in parallel. GPUs are very good at this, which obviously makes them useful for graphics rendering, but also at other tasks that involve the same mathematical operation, such as deep learning (the first few stages of a convolution deep neural net are just the application of specially tuned convolution kernels).


The original value. You're computing a new image as a function of the input, not modifying the input in place.




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

Search: