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