Boring details of my denoising filter