Extracting periodicity of a regular texture based on autocorrelation functions