Anisotropic diffusion and correlation analysis