Question: # ADD YOUR CODE HERE # calculate P _ s ( k , l ) from P _ g ( k , l ) as

# ADD YOUR CODE HERE
# calculate P_s(k,l) from P_g(k,l) as described in the lecture slides
noise_var = noise_Std**2
kernel = np.ones(size_Blur)/ np.prod(size_Blur)
H = ft.fft2(kernel)
H_squared = np.abs(H)**2
P_s =(P_g - noise_var)/ H_squared
# obtain the restoration filter frequency response Phi(k,l) as described in the lecture slides
# take the inverse DFT of Phi(k,l) to obtain the impulse response of the restoration filter
#Phi_DFT= ft.ifft2(Phi) Could you please do the parts in Step 4 one by one and explain how H(k,l) is output with code?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!