clear
load woman
subplot(1,2,1);image(X);colormap(map);title('原始图像');
de_x=haardec(X);
% de_x=dec(X,3,'haar','sym');
de_thr_x=thr(de_x,50);
% de_thr_x_vq=vq(de_thr_x,100);
% encode_x=huffman(de_thr_x_vq);
% s=size(de_encode_x);
% decode_x=ihuffman(de_encode_x);
% re_x=haarrec(decode_x);
re_x=haarrec(de_thr_x);
% re_x=rec(de_x,3,'haar','sym');
subplot(1,2,2);
image(re_x);
colormap(map);
title('重构图像');