Borrar filtros
Borrar filtros

use ginput and pushbutton

3 visualizaciones (últimos 30 días)
sina alizadeh
sina alizadeh el 15 de En. de 2017
hi, i wand to store multi click on image and save them after push done button. i store [x , y] coordinate of click in array but when click push button nothing happening . i get the click in while loop :
function pushbutton_callback(src,event , points ,names) // function callback
display(points);
while 1
[xi, yi] = ginput(1); % get coordinate %
%do somthing and save to array click points%
imshow(imageCopy);% image to show for click%
b = uicontrol('Style','pushbutton','Callback',{@pushbutton_callback ,points ,names}); %button%
end
when i click on the button the [x,y] is the past click and not change and nothing happen and run loop again, how to stop the while loop and call pushbutton_callback function . tanx

Respuestas (0)

Categorías

Más información sobre Visual Exploration en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by