MATLAB: How to interact with a video live

MATLABvideo

I get video data from a camera, and I want to get the mouse position when I click on the live window. Is there any function like 'ginput' I can use? Thank you!

Best Answer

Hi,
The video file if read through MATLAB will be a figure only. You can track the real time location by setting up the timer object and by click (WindowsButtonDownFcn) event.
You may found below answers useful to describe the approach in detail.
Hope it helps!