Linear and anisotropic diffusion in image processing