MATLAB 一层小波变换

一层小波变换

% 一层小波变换
clc;
clear all;
close all;
load wbarb;

image(X);
colormap(map);
[cA1, cH1, cV1, cD1]=dwt2(X,'bior3.7');
A1=upcoef2('a',cA1,'bior3.7',1);
H1=upcoef2('h',cV1,'bior3.7',1);
V1=upcoef2('v',cV1,'bior3.7',1);
D1=upcoef2('d',cD1,'bior3.7',1);

figure;colormap(map);
subplot(2,2,1); image(wcodemat(A1,180));
title('ApproximationAl')
subplot(2,2,2); image(wcodemat(H1, 255));
title('Horizontal Detail Hl')
subplot(2,2,3); image(wcodemat(V1,255));
title('Vertical Detail V1')
subplot(2,2,4); image(wcodemat(D1,255));
title('Diagonal Detail D1')
Y = 2.0*idwt2(A1,H1,V1,D1, 'bior3.7');
Y = imresize(Y,0.5);
figure; image(Y);colormap(map);
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值