Mercurial > hg > ishara
view dsp/wiener.m @ 61:eff6bddf82e3 tip
Finally implemented perceptual brightness thing.
author | samer |
---|---|
date | Sun, 11 Oct 2015 10:20:42 +0100 |
parents | c3b0cd708782 |
children |
line wrap: on
line source
function Y=wiener(X,VT,VS) % WIENER - Wiener filtering % % wiener :: % [[N]] ~'signal in time domain', % [[M]] ~'power spectrum of input', % [[M]] ~'desired power spectrum of output' % -> [[N]] ~'filtered signal in time domain' % :- N/2=M-1. % % Maps columnwise over two dimensional arrays. V=VS./VT; V = [V; V(end-1:-1:2,:)]; % get filtered DFT Y=real(ifft(fft(X).*V));