Digital Image Processing
A sampled image gives us our usual 2D array of pixels f[m,n] (Figure 1):
We can filter f[m,n] by applying a 2D discrete-space convolution as shown below (where h[m,n] is our PSF):
g[m,n] | = | h[m,n]*f[m,n] | ||||||
= |
|
EXAMPLE 1: Sampled Image
We also have discrete-space FTS:
F[u,v]=
(
(f[m,n]ⅇ−(ⅈum)ⅇ−(ⅈvm)))(2)
where F[u,v] is analogous to DTFT in 1D.∞ |
∑ |
m=−∞ |
∞ |
∑ |
n=−∞ |
NOTE:
"Convolution in Time" is the same as "Multiplication in Frequency"g[m,n]=h[m,n]*f[m,n](3)
which, as stated above, is the same as:G[u,v]=H[u,v]F[u,v](4)
EXAMPLE 2: Magnitude of FT of Cameraman Image
To get a better image, we can use the
fftshift
command in Matlab to center the Fourier Transform. The resulting image is shown in Figure 4:
0 comments:
Post a Comment