Power spectrum determination of a random pattern: comparison between numerical and analogic processing methods