% Chapter 11, Fig.11.10 % Eric Dubois, updated 2019-01-14 % Downsample Barbara image by two in each dimension % Images and spectral estimates % Required data: barb512_gray.tif, antialias_qs_coeff.mat % Required functions: WelchPDS_est % antialias_qs_coeff.mat is generated using mdsp_web_changesamp_design_qs_antialiasing_filter.m clear all, close all; N=64; % number of points of spectral estimate A = im2double(imread('barb512_gray.tif')); %power density spectrum of the original Barbara image, in dB BarbPDS = WelchPDS_est(A,N); ux=-1/2:1/N:1/2-(1/N); uy=ux; [u, v]=meshgrid(ux,uy); BarbPDS_in_dB = 20*log10(BarbPDS); ground = -100; BarbPDS_in_dB(BarbPDS_in_dB