Hello, I have the following code:
x = [];while ishandle(h) if isempty(x) == 1 imagesc(baslerGetData(baslerID,1)); %my function which captures 1 frame from my BASLER camera
colormap(gray); axis off drawnow [x,y] = ginput(1); else break endend
I want to have live video in my figure, and then when some location is selected with ginput the loop should break. Problem is that once ginput is initiated everything stops until I press the mouse, so I lose the frames refreshing.
Any ideas for a workaround?
THANK YOU
Best Answer