April 2020
Intermediate to advanced
438 pages
12h 2m
English
Follow the steps listed to implement the Wiener filter and apply it to restore images corrupted with blur/noise:
im = color.rgb2gray(imread('images/cactus.png'))
def convolve2d(im, psf, k): M, N = im.shape freq = fp.fft2(im) # assumption: min(M,N) > k > 0, k odd psf = np.pad(psf, (((M-k)//2,(M-k)//2+1), \ ((N-k)//2,(N-k)//2+1)), mode='constant') freq_kernel = fp.fft2 ...
Read now
Unlock full access