Forward-and-backward diffusion processes for adaptive image enhancement and denoising