Cambridge Research Systems Logo Cambridge Research Systems - Tools for vision science CRS Products
CRS Research
CRS Support
CRS Research topics menu Computerised Visual Stimuli
Topics in Computerised Visual Stimulus Generation

Topics in Computerised Visual Stimulus Generation by Tom Robson is published as a chapter of Vision Research, A Practical Guide to Laboratory Methods, edited by Roger Carpenter and John Robson, OUP 1998.


2. How do computers represent images
2.5 Square waves are nasty

It follows from the statement of the Nyquist criterion above that it is only possible to reproduce signals that are band-limited by using a digitally based stimulus generator. If an attempt is made to generate a non-band-limited stimulus however, all the energy in the signal that is supposed to be above the Nyquist frequency (fN) will be aliased into the pass-band of the system and a distorted waveform will be produced. The group of signals that most commonly fall into this category is square-waves. Fourier analysis of a square wave (fs) with a fundamental frequency f0 shows that it is composed of the sum of the odd harmonics (fn) with decreasing amplitude to infinity.

fs=f0/1-f3/3+f5/5-f7/7 … etc.

Even if the sampling frequency is arranged such that the fundamental or even the lower harmonics pass the Nyquist criterion, the relatively slow convergence of the series will mean that significant energy is available for aliasing.

To avoid this problem and ensure that the stimulus is as faithfully generated as possible without artefacts think in terms of sine waves only and shun square waves or anything with sharp edges. This applies equally to spatial and temporal waveforms.

arrowPrevious
  Nextarrow


^ Back to top



   
contact us