% Choose default command line output for Merwan1
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
movegui(hObject,'onscreen')% To display application onscreen
movegui(hObject,'center') % To display application in the center of screen
subplot(1,1,1);
a=imread('intro.jpg');
imshow(a);
% UIWAIT makes Merwan1 wait for user response (see UIRESUME)
% uiwait(handles.figure1);
clear all
clc
axis off
hold off
% --- Outputs from this function are returned to the command line.
function varargout = Merwan1_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure
varargout{1} = handles.output;
%**************************************************************************
%******************************* Bouton ************************************
function Browsebutton_CreateFcn(hObject, eventdata, handles)
% hObject handle to slider1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
function Browsebutton_Callback(hObject, eventdata, handles)
% hObject handle to Browsebutton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
tic % Starting Stopwatch Timer
set(handles.timel,'string','Busy'); % Displaying state
set(handles.methode,'string','Charger une image.');
set(handles.param,'string','Parametre de la m閠hode utiliser.');
global IMG ORI_IMG M N m1 m2 IMGM alpha segma beta valn choix filename
alpha=0.2; segma=0.5; beta=0.5; valn=0.3; choix=0;
% Loading the Image
[filename, pathname, filterindex]=uigetfile( ...
{'*.jpg','JPEG File (*.jpg)'; ...
'*.*','Any Image file (*.*)'}, ...
'Pick an image file');
if (filename~=0)
% Choose default command line output for Merwan1
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
movegui(hObject,'onscreen')% To display application onscreen
movegui(hObject,'center') % To display application in the center of screen
subplot(1,1,1);
a=imread('intro.jpg');
imshow(a);
% UIWAIT makes Merwan1 wait for user response (see UIRESUME)
% uiwait(handles.figure1);
clear all
clc
axis off
hold off
% --- Outputs from this function are returned to the command line.
function varargout = Merwan1_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure