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
|
%création de l'objet image
axes ('units', 'pixels', 'position', [0,0,512,512],...
'tag', 'im1');
%création de l'objet image2
axes ('units', 'pixels', 'position', [512,0,512,512],...
'tag', 'im2');
%création d'un bouton
uicontrol ('style', 'pushbutton', 'units','pixels',...
'position',[10, 770, 50, 20], 'string', 'Push!',...
'callback',@push...
,'tag', 'push_btn');
data = guihandles (gcf);
guidata (gcf, data);
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function push (obj, event)
data = guihandles (gcbf);
[stack, repertoire] = uigetfile ('.tif',...
'select the stack you wich to analyse'...
,'C:\Program Files (x86)\MATLAB71\work\Olivier\Fresh data\') ;
set (data.repertoire, 'string', num2str([repertoire, stack]));
a = imread ([repertoire, stack]);
axes (data.im2);
imagesc (a,'parent',data.im2); |
Partager