Author Topic: Image compression using wavelet transform  (Read 2030 times)

Offline quocvietpn

  • Newbie
  • *
  • Posts: 1
  • Matlab Forum
    • View Profile
Image compression using wavelet transform
« on: May 14, 2010, 12:05:22 PM »
Hello every body!
My name is Viet, from in Viet Nam. I am doing the thysic now.
I have a problem with my thysic and today i want to shrare with every body, anh wait the helping from diffirent people. Thank you!
the first, i will introduce about my thysic. I am doing about "image compressing", while i am writing the program, i have a problem with the 'uigetfile function' and the 'handles'. My purpose is add the image from the forder in my computer and i have done, but when i used the 'pushbutton' to 'transform wavelet' then it do not understant my image just added. Please tell me the best ways to solve this problem.
and this is my code:
%the code for adding the image
function pushbutton1_Callback(hObject, eventdata, handles)
name = uigetfile('*.png','chon hinh de nen');
handles.name=name
% the code for wavelet transform
n = 256; Jmin = 1;
I = load_image(handles.name,n);
% 2D wavelet transform
Iw = perform_wavelet_transform(I,Jmin,+1); % computation until scale Jmin
clf;
subplot(3,3,1);
imagesc(I); axis image; axis off; colormap gray(256); title('anh goc');
subplot(3,3,2);
plot_wavelet(Iw, Jmin); colormap gray(256); title('bien doi voi Jmin=1');
Jmin=2;
% and the code for OpeningFcn function
handles.output = hObject;
handles.name=???? (this is my problem)
please help me,
thanks every body


Offline England90

  • Jr. Member
  • *
  • Posts: 15
  • Matlab Forum
    • View Profile
Re: Image compression using wavelet transform
« Reply #1 on: October 19, 2010, 04:13:23 PM »
I think the data you put out was confused in that you review the source code for more photos!

Matlab and SimuLink Development Forum

Re: Image compression using wavelet transform
« Reply #1 on: October 19, 2010, 04:13:23 PM »