setting reference image/frame

5 次查看(过去 30 天)
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.

回答(1 个)

Prateek Khandelwal
Prateek Khandelwal 2017-3-13
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