1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
| clear;
clearglobal;
//stacksize('max')
//global variables
global params;
global PL_names;
global gui_edit;
//function to load files
function []=load_files_PL()
global gui_edit;
global PL_names;
//load files
PL_names=uigetfile(["*.*"],'', "Choose file(s)", %t);
endfunction
function []=map_tray()
global gui_edit;
global PL_names;
global PL_pos;
blank = RGB2Gray(ReadImage(PL_names_local(1))); // !!!!! ici ça ne foncitonne pas !!!!!
endfunction
//*******GUI*****
//create figure
f = gcf();
clf
//button to load files
d = uicontrol(f, "style", "pushbutton", ...
"string", "Load files",...
"position", [300 400 100 60], ...
"callback", "load_files_PL()");
//button to launch creation of map
d = uicontrol(f, "style", "pushbutton", ...
"string", "Map",...
"position", [300 50 300 60], ...
"callback", "map_tray()");
//close button
b = uicontrol(f, "style", "pushbutton", ...
"string", "close",...
"position", [200 50 200 60], ...
"callback", "close()"); |
Partager