capture frame on click

1 view (last 30 days)
SOE CADLAB on 30 Sep 2019
Commented: SOE CADLAB on 20 Oct 2019
how can i capture a frame on mouse click from a video ?
  1 Comment
darova on 30 Sep 2019
I think buttonDownFcn should be used in this case. BUt can't figure out how =(

Sign in to comment.

Answers (1)

Abhilash Padma
Abhilash Padma on 3 Oct 2019
One of the ways to achieve this task is to play video on axes and use buttonDownFcn of image object. You can try this by typing the following command in your MATLAB prompt which will open an example explaining how to display a video in a custom user interface.
Add the following line in the “displayImage” function of showFrameOnAxis.m
SOE CADLAB on 20 Oct 2019
thank you but i need to capture that paritular frame on a mouse click

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!

Translated by