Question: *Note: Need to provide code for this solution(code in python or MatLab) Given an image of a building (building.tif), apply the Sobel mask in Figure
*Note: Need to provide code for this solution(code in python or MatLab)
Given an image of a building (building.tif), apply the Sobel mask in Figure 4.38(a), show and compare the results of filtering in the frequency domain and the spatial domain, respectively
(a) A spatial kernel and perspective plot of its corresponding frequency domain filter transfer function.
(b) Transfer function shown as an image
(c) Result of filtering Fig.4.37(a) in the frequency domain with the transfer function in (b).
(d) Result of filtering the same image in the spatial domain with the kernel in (a).
The results are identical

-1 0 1 -2 0 2 -1 0 1 a b cd FIGURE 4.38 (a) A spatial kernel and per- spective plot of its corresponding frequency domain filter transfer function. (b) Transfer function shown as an image. (c) Result of filtering Fig. 4.37(a) in the frequency domain with the transfer function in (b). (d) Result of filtering the same image in the spatial domain with the kernel in (a). The results are identical. -1 0 1 -2 0 2 -1 0 1 a b cd FIGURE 4.38 (a) A spatial kernel and per- spective plot of its corresponding frequency domain filter transfer function. (b) Transfer function shown as an image. (c) Result of filtering Fig. 4.37(a) in the frequency domain with the transfer function in (b). (d) Result of filtering the same image in the spatial domain with the kernel in (a). The results are identical
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
