Hello,
I am currently trying to initiate a callback routine when the user presses on an axis that contains a live video stream, i.e.
frame = getsnapshot(handles.vidObj); axes = imshow(frame, 'Parent', handles.axes_stream); preview(handles.vidObj, axes); % assign vidObj to axes
However, I have not yet been able to achieve this despite looking at various discussions. I presume it is because the displayed video is stopping my mouse button being registered and the callback routine is not working.
Any help would be appreciated.
No products are associated with this question.
I am guessing that preview is nullifying your ButtonDownFcn (just an educated guess though). Thus you would need to reinstate your ButtonDownFcn on the axes after calling preview.
Sam, if your license's SMS is current, please contact Technical Support.
I haven't tried clicking on the live video axes. Would clicking on a button be an acceptable workaround? Because I know I can click on buttons while I have a live image in an axes, and it does the callback operations just fine.
1 Comment
Direct link to this comment:
http://www.mathworks.com/matlabcentral/answers/53913#comment_111845
Anyone? I'm starting to think that maybe it's not possible.