Counting dispersion of distanses from pixels to pixel (0,0)