1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
function bdfcn(obj,event)
sel = get(gcbf,'SelectionType');
if strcmpi(sel,'open')
img = get(obj,'cdata');%on recupere l'image
num = get(obj,'userdata');%on recupere sa position dans la pile
set(imslider,'value',num);%on regle la barre de defilement
imax = size(D,3);
c = [num2str(num) '/' num2str(imax)];
set(indicpos,'string',c);%on regle l'ondicateur de position
handles.himg = imshow(img,'DisplayRange',[],'parent',axeim);
set(fig,'colormap',nmap);
handles.image = D(:,:,num);
guidata(gcbf,handles);
end
end |
Partager