Scale selection for anisotropic diffusion using probabilistic methods