how to perform wavelet transform on an image?
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
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;
Antworten (0)
Diese Frage ist geschlossen.
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!