function [H, D] = lpfilter(type, M, N, D0, n) % LPFILTER Computes frequency domain lowpass filters % H = LPFILTER(TYPE, M, N, D0, n) creates the transfer function of a % lowpass filter, H, of the specified TYPE and size (M-by-N). To view the % filter as an image or m...
function H = hpfilter(type, M, N, D0, n)if nargin == 4 n = 1;end hlp = lpfilter(type, M, N, D0, n);H = 1 - hlp;