联系QQ:

2181264433

新闻资讯
联系我们
联系:张女士
微信:扫一扫右侧二维码
QQ :2181264433
邮箱:2181264433@qq.com
地址:浙江省-嘉兴市-南湖区
网址:www.mhslogic.com
您当前位置:首页 > 国内资讯 > 正文国内资讯
MATLAB代做|MATLAB专业代做|平稳小波分解
添加时间:2019-2-25 来源:本站整理
%平稳小波分解
clear all
close all
tic
%  a1=imread('airplane.bmp');
%  a=rgb2gray(a1);
%a=rgb2gray(imread('horsetrack.jpg'));
a=imread('lena.bmp');
figure(1);
imshow(a);title('原始图像');
qmf=MakeONFilter('Daubechies',8);
%qmf=MakeONFilter('Symmlet',4);
L=3;     %选择分解尺度
x=double(a);
[n,J]=quadlength(x);
%L1=J-L;%尺度转换
wc =SWT2_FHX(x,qmf,L);
toc
%显示分解后图像
for i=1:L
figure(i+1);
subplot(2,2,1);imshow(uint8(wc{i,1}));title(['第',num2str(i),'层LL近似像']);
subplot(2,2,2);imshow(uint8(wc{i,2}));title(['第',num2str(i),'层HL细节像']);
subplot(2,2,3);imshow(uint8(wc{i,3}));title(['第',num2str(i),'层LH细节像']);
subplot(2,2,4);imshow(uint8(wc{i,4}));title(['第',num2str(i),'层HH细节像']);
end

tic
x=ISWT2_FHX(wc,qmf,L);
%outdb=PSNR_double(x,double(a));
figure(L+2);
imshow(uint8(x));%title(['平稳小波重构结果,重构PSNR=',num2str(outdb),'db']);
toc
% Copyright (c) 2007. Hongxiao Feng 
% Institute of Intelligent Information Processing,Oct.19th,2007. 

扫一扫,关注我们