clc,clear all,close all;
load woman;
[cA,cH,cV,cD]=swt2(X,2,'haar');%用haar小波基进行2尺度平稳小波分解
Y=iswt2(cA,cH,cV,cD,'haar');
figure;
subplot(1,2,1),imshow(uint8(X)),title('原图');
subplot(1,2,2),imshow(uint8(Y)),title('重构');
2022-03-24 23:41:39
clc,clear all,close all;
load woman;
[cA,cH,cV,cD]=swt2(X,2,'haar');%用haar小波基进行2尺度平稳小波分解
Y=iswt2(cA,cH,cV,cD,'haar');
figure;
subplot(1,2,1),imshow(uint8(X)),title('原图');
subplot(1,2,2),imshow(uint8(Y)),title('重构');