Mercurial > hg > ishara
view arrows/dsp/aresample.m @ 61:eff6bddf82e3 tip
Finally implemented perceptual brightness thing.
author | samer |
---|---|
date | Sun, 11 Oct 2015 10:20:42 +0100 |
parents | 672052bd81f8 |
children |
line wrap: on
line source
function a=aresample(f1,f2) f0=gcd(f1,f2); p=f2/f0; q=f1/f0; %[y,num]=resample(zeros(16,1),p,q); num=get(mfilt.firsrc(p,q),'Numerator'); % design resampling filter using mfilt a=asysobj(@(sz)dsp.FIRRateConverter(p,q,num),1,1,@(sz){[sz{1}(1)*f2/f1,sz{1}(2)]});