Beruflich Dokumente
Kultur Dokumente
Linear
linearity
LTI System
y[n] =
k =
x[k ] h[n k ]
y[n] = 2 3 3 3 6 0 1 0 0
convex1
Example..(Continued)
Convolution
Convolution
Two ways
As the representation of the output as a sum of delayed and scaled impulse responses. As a computational formula for computing y[n] (y at time n) from the entire sequences x and h.
Form x[k]h[n-k] for -<k<+ for a fixed n Sum over all k to produce y[n]
Stability
Causality
2D Discrete Convolution
y[n] =
k =
x[k ] h[n k ]
y[n] = 2 3 3 3 6 0 1 0 0
in 1/9 1/9 1/9 1/9 1/9 1/9 1/9 1/9 1/9 out[x,y]
out
Projection of 3x3 Kernel The Moving Window (kernel) scans the 3x3 neighborhood of every pixel in the classified image.
Classified Image
A value is computed, depending on the type of kernel, from the 9 values in the input file and placed in the corresponding cell of the output file.
Output File
Output File
Output File
Output File
Output File
Output File
Output File
Output File
Output File
(3 + 5 + 5 + 8 + 6 + 8 + 4 + 4 + 6) / 9 = 5.44 Round(3 + 5 + 5 + 8 + 6 + 8 + 4 + 4 + 6) / 9 =
5 5 Box Filter
in
out
Gaussian Filter
1D: g(x)= 1/(2) 2D: g(x,y)= 1/(2)
4
2/22 -x e
2+y2) /22 (x e
Gaussian Filter
in
Edge Detection
edge f(x) df(x) f(x+h) - f(x) dx h out[x,y] = in[x+1,y] - in[x,y] g[x,y] = 0 0 0 0 -1 1 0 0 0 (must remap result to range 0-1)
scanline
df(x) dx
Derivative
sharp edges brighter scanline in: values 0-10 10 11 10 9 10 -1 5 1 darker 6 5 brighter 10 11
= {in[x] - in[x-1]}/2 + 5 5 4 7 5
5 2
dark pixel
bright pixel
Horizontal Derivative
in
simple df dx
Sobel df dx
Oriented Edges
in
Gradient + Blur
in
Edge Enhancement
AKA Sharpening
Find edges, amplify them, add them back
Edge Enhancement
in
out
low-pass filter
Differentiation
1 2 1
0 0 0
1 2 1 2 = [1 0 1 1
1]
threshold
96 128
Convolutions- Smoothing
Difference Equation
For all computationally realizable LTI systems, the input and output satisfy a difference equation of the form
which can be used to compute the present output from the present and M past values of the input and N past values of the output
First-Order Example
Consider the difference equation We can represent this system by the following block diagram:
y[n] =ay[n1] +x[n]