作业帮 > 综合 > 作业

谁有“小波分解程序”?

来源:学生作业帮 编辑:搜搜考试网作业帮 分类:综合作业 时间:2024/06/05 12:06:32
谁有“小波分解程序”?
只要实现“基于小波变换的纹理图像分割”就行~
我的毕业设计的题目是“基于小波变换的纹理图像分割算法研究”
我的QQ是:510685265
要求:最好可以实现“三级小波分解”
谁有“小波分解程序”?
可以用wavemenu,wavedemo进入GUI,帮助文件
% Load original 1D signal.
load leleccum; s = leleccum(1:3920);
ls = length(s);
% Perform one step decomposition of s using db1.
[ca1,cd1] = dwt(s,'db1');
% Perform one step reconstruction of ca1 and cd1.
a1 = upcoef('a',ca1,'db1',1,ls);
d1 = upcoef('d',cd1,'db1',1,ls);
% Now plot a1 + d1.
% Invert directly decomposition of s using coefficients.
a0 = idwt(ca1,cd1,'db1',ls);
% Perform decomposition at level 3 of s using db1.
[c,l] = wavedec(s,3,'db1')
% Extract approximation coefficients at level 3,
% from wavelet decomposition structure [c,l].
ca3 = appcoef(c,l,'db1',3);
% Extract detail coefficients at levels 1,2 and 3,
% from wavelet decomposition structure [c,l].
cd3 = detcoef(c,l,3);
cd2 = detcoef(c,l,2);
cd1 = detcoef(c,l,1);
% Reconstruct approximation at level 3,
% from wavelet decomposition structure [c,l].
a3 = wrcoef('a',c,l,'db1',3);
% Reconstruct detail coefficients at levels 1,2 and 3,
% from the wavelet decomposition structure [c,l].
d3 = wrcoef('d',c,l,'db1',3);
d2 = wrcoef('d',c,l,'db1',2);
d1 = wrcoef('d',c,l,'db1',1);
% Reconstruct s from the wavelet decomposition structure [c,l].
a0 = waverec(c,l,'db1');