Spatial autocorrelation index reflects the degree of the correlation between the geographical elements. Based on random
grayscale, this paper completes the calculation of all kinds of spatial autocorrelation index with the aid of computer technology.
Moreover, it analyzes the calculation results and validates each index in detecting aggregation ability.