Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

how to perform wavelet transform on an image?

1 vue (au cours des 30 derniers jours)
mari ahmad
mari ahmad le 9 Oct 2015
Clôturé : MATLAB Answer Bot le 20 Août 2021
in my case after3 phase wavelet transform i have an image(image1) like this:just changed the image size
but in this code: why i can't see the original image with the small size? i mean in 3 phase the image Totally broken!
this is my code:
clc;
clear;
close all;
img=im2double(imresize(imread('C:\Users\Pars\Desktop\maghaleh.bmp'),[256 256]));
wname='haar';
[C, S]=wavedec2(img,3,wname);
A{3}=appcoef2(C,S,wname,3);
[H{3}, V{3}, D{3}]=detcoef2('all',C,S,3);
A2=[A{3} H{3}; V{3} D{3}];
[H{2}, V{2}, D{2}]=detcoef2('all',C,S,2);
A1=[A2 H{2}; V{2} D{2}];
[H{1}, V{1}, D{1}]=detcoef2('all',C,S,1);
A0=[A1 H{1};V{1} D{1}];
figure;
subplot(1,2,1);
imshow(img);
subplot(1,2,2);
imshow(A0);
size A0;

Réponses (0)

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by