setting reference image/frame

5 visualizzazioni (ultimi 30 giorni)
Olivia Foley
Olivia Foley il 1 Mar 2017
Risposto: Prateek Khandelwal il 13 Mar 2017
Hello,
I am currently writing a plugin that will allow me to overlay two video files. The issue is, I want to be able to set one of the frames of the video file as a reference file for the what I'm overlaying. So for example:
Video 1 has 5 frames, I need frame 3 to be the reference frame. I then want to be able to load video 2 and rotate it and be on any frame without it affecting video one. I've got this second bit coded, but the first bit I am really unsure where to begin.

Risposte (1)

Prateek Khandelwal
Prateek Khandelwal il 13 Mar 2017
Hello Olivia,
the VideoReader function call can be used to read a specific frame from a video file. One tricky part is that you need to provide the timestamp of the frame, however, that should be fairly straight forward calculation.
Regards,

Community Treasure Hunt

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

Start Hunting!

Translated by