Matlab code for DWT2




clc;
clear all;
close all;
a=imread('gh.png');
%x1=imread('122.png');
img=imresize(a,[512 512]);
s=size(img);
if (length(s)==3)
X=rgb2gray(img);
end
X=double(X);
figure,imshow(uint8(X))
title('original image')
%wave='db1';
[cA,cH,cV,cD] = dwt2(X,'db1');
%[c, q, r, s]=dwt2(img,'db1');
[cA1,cH1,cV1,cD1] =dwt2(cA,'db1');
b1=[cA1,cH1;cV1,cD1];
imshow(b1)
b2=[uint8(b1),cA; cV cD];
imshow(b2)
Matlab code for DWT2 Matlab code for DWT2 Reviewed by Suresh Bojja on 10/28/2015 10:15:00 AM Rating: 5
Theme images by sebastian-julian. Powered by Blogger.