i= imread('rice.png');
imshow(i);
[CA1,CV1,CH1,CD1] = dwt2(i,'haar');
sx = size(i);
A1 = idwt2(CA1,[],[],[],'haar',sx);
figure,imshow(A1);
image(wcodemat(A1,192));
title('aprozimation coefficient')
i= imread('rice.png');
%imshow(i);
[CA1,CV1,CH1,CD1] = dwt2(i,'haar');
sx = size(i);
A1 = idwt2([],CV1,[],[],'haar',sx);
figure,imshow(A1);
image(wcodemat(A1,192));
title('Vertical')
i= imread('rice.png');
%imshow(i);
[CA1,CV1,CH1,CD1] = dwt2(i,'haar');
sx = size(i);
A1 = idwt2([],[],CH1,[],'haar',sx);
figure,imshow(A1);
image(wcodemat(A1,192));
title('Horizontal coefficient')
i= imread('rice.png');
%imshow(i);
[CA1,CV1,CH1,CD1] = dwt2(i,'haar');
sx = size(i);
A1 = idwt2([],[],[],CD1,'haar',sx);
figure,imshow(A1);
image(wcodemat(A1,192));
title('Diagonal coefficient')
imshow(i);
[CA1,CV1,CH1,CD1] = dwt2(i,'haar');
sx = size(i);
A1 = idwt2(CA1,[],[],[],'haar',sx);
figure,imshow(A1);
image(wcodemat(A1,192));
title('aprozimation coefficient')
i= imread('rice.png');
%imshow(i);
[CA1,CV1,CH1,CD1] = dwt2(i,'haar');
sx = size(i);
A1 = idwt2([],CV1,[],[],'haar',sx);
figure,imshow(A1);
image(wcodemat(A1,192));
title('Vertical')
i= imread('rice.png');
%imshow(i);
[CA1,CV1,CH1,CD1] = dwt2(i,'haar');
sx = size(i);
A1 = idwt2([],[],CH1,[],'haar',sx);
figure,imshow(A1);
image(wcodemat(A1,192));
title('Horizontal coefficient')
i= imread('rice.png');
%imshow(i);
[CA1,CV1,CH1,CD1] = dwt2(i,'haar');
sx = size(i);
A1 = idwt2([],[],[],CD1,'haar',sx);
figure,imshow(A1);
image(wcodemat(A1,192));
title('Diagonal coefficient')
No comments:
Post a Comment