Algorithm for multiple view denoising of images