













Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!














IV. Linear systems analysis
Linear systems analysis refers to a set of mathematical techniques that can be used to analyze and describe input/output systems that satisfy certain linearity assumptions. The inputs and outputs of linear systems are represented by functions. These functions can be of any number of variables, but for present purposes there will only be one variable, time (t) or space (x) , or two variables, space-space (x,y) , or space-time (x,t). For example the input functions might represent the variation in light level on a single receptor over time, the spatial distribution of light entering the eye, or the spatial distribution of neural activity transmitted from the eye to the brain along the optic nerve. The output functions might represent the electrical response of the receptor over time, the spatial distribution of light falling on the retina, or the spatial distribution of neural activity of a group of cells receiving inputs from the optic nerve.
The letter L will be used to represent a linear system; i(t) , i(x,y) , etc. will represent input functions; and o(t) , o(x,y) , etc. will represent output functions. Thus, we can write in the one-dimensional case,
or in the two-dimensional case,
The curly brackets are used as a reminder that a linear system takes a whole function as input and gives a whole function as output. For example, the optical system of the eye can be regarded as a linear system that transforms the two-dimensional light distribution in an object plane, i(x,y) , into a two-dimensional light distribution in the image plane, o(x, y).
Figure 4.1 illustrates graphically a one-dimensional input function, a linear system, and a one dimensional output function. To make the figure concrete the reader might imagine that the left side represents a temporal signal (rectangular pulse) turned on shortly after time 0, while the right side represents the response of the linear system to this signal.
A. Constraints defining linear systems
In order for a one-dimensional system to be linear, it must satisfy the following constraint,
L ai { 1 ( t ) (^) + bi 2 ( t )} = aL i { 1 ( t )} + bL i { 2 ( t )} (4.3)
where i 1 (t) and i 2 (t) are two arbitrary input functions and a and b are arbitrary constants
(scalars). In words, the constraint is that the response of a linear system to the sum of two input function equals the sum of the responses to each input taken alone, and also scaling an input function by some amount scales the output function by exactly the same amount. In Figure 4.1B, another pulse has been added to the one in Figure 4.1A. If the system is linear then the response must be the sum of the individual responses (as shown). In Figure 4.1C, the input pulse in Figure 4.1A has been doubled in amplitude. If the system is linear the response should double in amplitude (as shown).
Figure 4.
The constraint is essentially the same for two-dimensional stimuli,
L ai {^1 ( x , y ) +^ bi 2 ( x , y )}^ =^ aL i { 1 ( x , y )}^ +^ bL i { 2 ( x , y )}^ (4.4)
where i 1 (x, y) and i 2 (x, y) are two arbitrary input functions and a and b are arbitrary
constants (scalars).
A somewhat more constrained type of system (the one that we will focus on) is the linear shift-invariant (LSI) system. Shift invariant means that shifting the input along the input dimensions shifts the output by a corresponding amount without changing the output shape. In other words, for a system to satisfy this constraint, a shift in the starting time or position of an input should not change the shape of the output. More formally, if
An impulse function is represented graphically as an arrow with height equal to its area or volume. The arrow on the left in Figure 4.2A represents an impulse function of unit area presented a location 0. The function labeled h(t) on the right represents an impulse-response function. The impulse-response function completely characterizes a LSI system because the response of the system to any input can be predicted from knowledge of the impulse-response function alone. This fact rests on the convolution formula, which will now be derived in an intuitive (not rigorous) fashion.
Figure 4.
1. Convolution formula for one-dimensional systems
Consider an arbitrary input function, i(t), to a LSI system with impulse response function h(t). This arbitrary input is illustrated in Figure 4.2B. The first thing to note is that the input function can be broken down into the sum of short slices of width ∆α. One of these slices (the one at position α) has been shaded in the figure. As illustrated just below this slice, the effect of the slice on the system can be approximated by an impulse function positioned at α with a of height i(α) ∆α (the approximate area of the slice). The smaller is ∆α, the smaller the slices and the more accurate will be the approximation. What is the response to this slice? Because of shift invariance (Figure 4.1D), the response must have the same shape as what would have been obtained if the slice were centered at the origin (0); but it will be shifted over by α. Because of the scaling
constraint (Figure 4.1c), the shape (if presented at the origin) must be that of the impulse- response function but scaled (multiplied) by i(α) ∆α (the area of the impulse). Thus, the response to the slice will be approximately h(t-α) i(α) ∆α, as illustrated in the right side of Figure 4.2B. This is the response to the slice at an arbitrary position α. Because of the
summation constraint (Figure 4.1B) the response to the sum of the slices (the whole input) is the sum of the responses to each slice. Thus,
j
o t i α h t α α
∞
=−∞
Intuitively, as ∆α gets smaller the slices are better approximated by impulse functions and the summation becomes more accurate. Thus, in the limit, as ∆α approaches 0.0,
∞
This is the convolution formula and it can be used to compute the response to arbitrary inputs. The symbol (^) * will be used to represent operation of one-dimensional
convolution. Thus, the shorthand notation for equation (4.10) is
o(t) = h(t) * i(t) (4.11)
2. Convolution formula for two-dimensional systems
Computing the response of a two-dimensional LSI system from its impulse response function is entirely analogous. Let the arbitrary input function be i(x, y) and the impulse response function be h(x, y), then the output is given by,
∞ ∞
The "intuitive" derivation of this formula is analogous to the one-dimensional case and is left for the reader. The symbol ** will be used to indicate the operation of two-
dimensional convolution. Thus, equation (4.12) can be represented as
3. Measuring the impulse-response function
The beauty of a linear system is that once the impulse response function is known the response of the system to any input can be predicted. There are several common methods of measuring the impulse response function. The most direct method is simply to present an impulse and measure the system's response. As mentioned above, it is usually possible to approximate an impulse with a narrow pulse (perfect impulses are not
(4.14) satisfies the properties of a LSI system.) Indeed, equation (4.14) is seen to be very similar to equation (4.10). Note that equation (4.14) can be written as
∞ −∞
Thus, the impulse response function of a cross-correlation system is just the system weighting function with the sign of the argument reversed; h(t) = w(-t). For symmetrical weighting functions, the impulse response and weighting functions are identical.
Figure 4.
2. Cross-correlation formula for two-dimensional systems
The formula for two-dimensional cross correlation is entirely analogous:
∞ ∞ −∞ −∞
The symbol ⊗ ⊗ is used to represent the two-dimensional cross correlation. Also the impulse response function of a 2D cross-correlation system is the weighting function with the sign of the arguments reversed; h(x, y) = w(-x,-y). Thus,
o(x,y) = i(x,y) ⊗⊗ w(x,y) = i(x,y) ** w(-x,-y) (4.18)
3. Measurement of the weighting function
Because the weighting function of a linear system is just the impulse-response function with the sign of the arguments reversed, the weighting function can be found by measuring the impulse response function or vice versa. The only thing new worth noting is that weighting function is most directly measured by recording the output of the system at a fixed point while presenting input impulses (edges, lines or sinewaves) at different positions. Sometimes this is more convenient than measuring the impulse response function (i.e., the output at different points to an input presented at just one point).
D. The Fourier transform
The two major steps in applying a linear systems analysis are (1) measuring the impulse-response function (or weighting function) and (2) computing the predicted outputs for different inputs. The methods of Fourier analysis and synthesis often prove useful for carrying out both steps. A brief overview of the Fourier methods will now be given before presenting some of the mathematical details.
The fundamental concept in Fourier analysis and synthesis is that any function can be decomposed into a sum of sinusoidal functions of differing frequencies, amplitudes, and phases (positions). This decomposition is called the Fourier transform. Formally, the Fourier transform is a complex valued function, which can be regarded as a pair of real- valued functions: the amplitude spectrum (sinewave amplitude as a function of frequency) and the phase spectrum (sinewave phase as a function of frequency). In other words, the Fourier transform of a function is essentially a pair of functions describing the sinewaves that when added together would give back the function.
The inverse Fourier transform adds up the all the sinewaves described by the amplitude and phase spectra. In other words, the inverse Fourier transform takes the amplitude and phase spectra as input and returns the original function.
Fourier analysis and synthesis are demonstrated in Figure 4.4. The straight-edged function at the bottom is a square wave and it (like any other function) can be decomposed into sine-wave functions. If the repetition frequency of the square wave (i.e., the number of squares per unit distance or time) is ω then the sine-wave frequencies that are needed to reconstruct the square wave are ω, 3ω, 5ω, 7ω, … and so on. The first
component is the fundamental and the rest of the components are harmonics of the fundamental. (The harmonics of a frequency are the frequencies that are integer multiples of that frequency. By this definition the fundamental is also the first harmonic.) A square-wave contains only the odd numbered harmonics. In other words, the amplitude and phase spectra of a square wave are zero everywhere except at the frequency of the square wave and at the odd harmonics of that frequency. The first several sine-wave components are shown at the top of the figure along with the sum of
can be measured by measuring the transfer function, and then applying an inverse Fourier transform. Measuring the transfer function often gives a much more accurate estimate of the impulse response function than any other method. The direct method for measuring the transfer function is based on the following facts of Fourier theory:
(a) A sine-wave input to an LSI system produces a sine-wave output that can differ from the input only in amplitude and phase (it must of the same frequency).
(b) The amplitude spectrum of the output of an LSI system (Ao ) is the product of the amplitude spectrum of the input (Ai) and the amplitude spectrum of the impulse-response
function (Ah, which is the ATF):
Ao = Ah Ai (4.19)
(c) The phase spectrum of the output (Po ) is the sum of the phase spectrum of the input
(Pi) and the phase spectrum of the impulse-response function (Ph , which is the PTF):
P (^) o = P (^) h + P (^) i (4.20)
These properties imply that one can measure the transfer function of a linear system by presenting sine-wave inputs of all different frequencies. If the amplitudes and phases of these sine-wave inputs and outputs are recorded at each frequency, then the amplitude transfer function can be obtained by dividing the output amplitudes by the input amplitudes:
Ah = Ao / Ai (4.21)
and the phase transfer function can be obtained by subtracting the input phases from output phases:
P (^) h = P (^) o - P (^) i (4.22)
Properties (b) and (c) are also useful for computing the output of the linear system once the impulse response function is known. Specifically, one can take the Fourier transform of the input, and then use the transfer function and equations (4.19) and (4.20) to obtain the Fourier transform of the output. A final inverse Fourier transformation yields the output signal. This circuitous route through the Fourier domain is usually faster on a digital computer than directly calculating the convolutions.
Figure 4.
The real part is called the cosine transform (C(u)), the imaginary part the sine transform (S(u)):
C u ( ) (^) f (^) ( ) t (^) cos 2( π ut dt )
∞ −∞ = (^) ∫ (4.27)
S u ( ) (^) f (^) ( ) t (^) sin 2( π ut dt )
∞ −∞ = (^) ∫ (4.28)
and thus,
F(u) = C(u) - jS(u) (4.29)
C(u) is always symmetric about the origin (u=0) and S(u) is always anti-symmetric about the origin.
This shows that the Fourier transform of a real-valued function consists of two real- valued transforms (in fact, the complex numbers play a relatively minor role). In words, the Fourier transform of a real function is obtained by summing (integrating) the product of the function and a unit amplitude cosine function, and by summing the product of the function and a unit amplitude sine function. This calculation is done for each frequency (u), and thus the Fourier transform is a function of u.
Substituting equations (4.25) and (4.29) into the formula for the inverse Fourier transform (equation 4.24) gives some insight into what the Fourier transform does:^2
f (^) ( ) t (^) C u ( ) (^) cos 2( π ut dt ) S u ( ) (^) sin 2( π ut dt )
∞ ∞ −∞ −∞ = (^) ∫ +∫ (4.30)
Equation (4.30) says that f(t) is equal to the sum of cosine functions and sine functions with amplitudes C(u) and S(u), respectively. In other words, C(u) and S(u) describe the sine and cosine waves that when added together reproduce the function.
We can also express C(u) and S(u) in polar coordinates using the inverse polar coordinate transformations:
C u ( ) (^) = A u ( ) (^) cos( P u ( )) (4.31)
(^2) The cross product terms that appear after the substitutions, integrate to zero because f(t) is a real valued function and thus C(u) and cos(2πut) are even symmetric about the frequency origin and S(u) and sin(2πut) are odd symmetric about the origin. When an even function is multiplied by an odd function the result is odd, and odd functions must integrate to zero.
and,
Substituting these into equation (4.30) and simplifying shows that
∞ −∞
Equation (4.33) says that f(t) is also equal to the sum of cosine functions with amplitudes A(u) and phases P(u). In other words, the Fourier transform of a function gives the cosine waves (of various amplitudes and phases) that when added together reproduce the function. A(u) is called the amplitude spectrum , and P(u) the phase spectrum. A(u) is always symmetric about the origin and P(u) is always anti-symmetric about the origin. Figure 4.6 shows a one-dimensional function and its amplitude spectrum.
Most computer subroutine for doing Fourier transforms give C(u) and S(u) as outputs. The amplitude and phase spectra can be obtained (if desired) using the polar coordinate transformations:
A(u) = C(u) 2 + S(u) 2 (4.34) and,
P(u) = arctan( S(u) C(u)
Figure 4.
Figure 4.7b
The Fourier transform can also be expressed in terms of the phase and amplitude spectra by substituting the inverse polar coordinate transformations (4.31 and 4.32) into equation (4.29):
F(u) = A(u) ejP(u) (4.36)
A table of properties of the one-dimensional Fourier transform (from Gaskill, 1978) is given in Figure 4.7. The only one that will receive special mention now is the Fourier convolution property: the Fourier transform of a convolution of two functions [ i(t) (^) * h(t) ]
equals the product of the Fourier transforms of the individual functions [ I(u)H(u) ]. This property is easily proved (see Gaskill). Given the convolution property, equation (4.36) implies that,
Ao (u) = Ah (u) Ai (u) (4.37)
and,
P 0 ( u )^ = Ph ( u )^ + P (^) i ( u )^ (4.38)
where Ao , Ai and Ah are the amplitude spectra of o(t) (the result of the convolution), i(t)
and h(t), respectively, and P (^) o , Pi and Ph are the corresponding phase spectra. As
mentioned earlier, these properties are useful for measuring the impulse-response function of a linear system and for computing its output to different inputs (c.f., equations 4.21 - 4.22).
2. Two-dimensional systems
The definition of the Fourier transform for two-dimensional (2D) functions is analogous to that for one-dimensional signals:
( ) ( ) F u v , ∞^ f x y e , −^ j^^2 π(^ ux^ + vy ) dxdy = (^) ∫−∞ (4.39)
where u is frequency in one direction (e.g., cycles per horizontal degree), v is frequency in the other direction (e.g., cycles per vertical degree), and j is the
imaginary constant − 1. The inverse two-dimensional Fourier transform is given by,
( ) ( ) f x y , ∞^ F u v e , j^^2 π(^ ux^ + vy ) dudv = (^) ∫−∞ (4.40)
As in the one-dimensional case, the two-dimensional Fourier transform can be expressed in terms of the cosine and sine transforms,
F(u,v) = C(u,v) - j S(u,v) (4.41)
or in terms of the amplitude and phase spectra,
F(u,v) = A(u,v) ejP(u,v) (4.42)
Figure 4.9 A
Figure 4.9a (continued)