Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8781773
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T20:23:30+00:00 2026-06-13T20:23:30+00:00

In MATLAB one could do something like this to handle mouse clicks in image

  • 0

In MATLAB one could do something like this to handle mouse clicks in image axis of a Figure

frame = imread('image.jpeg');
imHandle = imshow(frame);
set(imHandle, 'ButtonDownFcn', {@onclick, gca}); % @onclick is callback function

However, I’m using video player from Computer Vision System toolbox. For example,

videoPlayer = vision.VideoFileReader(filename, 'VideoOutputDataType', 'uint8');
for i=1:1:10 
    frame = mov(i).cdata;      % read frame from a movie structure
    step(videoPlayer, frame);  % Original video
end

Essentially, I would like to write mouse-click callbacks for a vision.VideoPlayer object, in the same manner as for a MATLAB handle graphics object. The call back function could return, for example, the position of the click within the video. I didn’t find examples for this on MathWorks website. Is this possible with vision.VideoPlayer objects?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T20:23:31+00:00Added an answer on June 13, 2026 at 8:23 pm

    Per MATLAB support. The vision.VideoPlayer object is actually a handle graphics object. There is an undocumented and unsupported command by which we can obtain its handle:

    findall(0, 'type', 'axes', 'tag', 'VideoAxes')
    

    Note that altering the handle graphics properties of the video.VideoPlayer object may cause unexpected behavior, and that doing this is not a supported feature.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a question about incrementing one value of a MATLAB array multiple times
So I figured out I can convert an image to grayscale like this: public
In Matlab 2012b, Mathworks switched from menus and toolbars to the ribbon. One thing
I am trying to plot some one-dimensional data onto a 2-D plot in MATLAB.
I'm trying to understand some MATLAB source codes. I don't know exactly which one
My matlab code does image processing, and I made matlab function which has 2
In MATLAB, how do you write a matrix into an image of EPS format?
I have a text file and would like to import it into MATLAB and
A friend of mine needs to use MATLAB for one of his classes, so
I'm trying to write a program that cleans data, using Matlab. This program takes

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.