⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testlvq1.asv

📁 QMF滤波器在语音编码中的应用,通过matlab 实验程序设计和实现二通道镜像滤波器(QMF、CQF、OQF)在语音编码中的应用
💻 ASV
字号:
function [y]=testlvq1(x)
tic; %start watch

global para;

s=para.s(1);


x=double(x);

%preprocess---------------------
rn=size(x,1);
%cn=size(x,2);
rem1=mod(rn, s*);
%rem2= mod(cn,s);
rn=rn-rem1;
cn=cn-rem2;
x=x(1:rn,1:cn);
%--------------------------------

x1=im2col(x,[s s],'distinct');
x1=x1';


%compress and decompress
for i=1:1
    if(i==1)
    v=imread('codebook.bmp');
    s1='Reconstructed';
    else
%         s1='Reconstructed- proposed';
%     v=imread('codebookp.bmp');
    end 
    
    c=size(v,1);

    
yc=lvqcode(x,v); 

yp=lvqdecode(yc,v);
%------------------------
if(i==1)
    y=yp;
end
y=uint8(yp);


end

toc; % stop watch

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -