필터 지우기
필터 지우기

setting reference image/frame

조회 수: 2 (최근 30일)
Olivia Foley
Olivia Foley 2017년 3월 1일
답변: Prateek Khandelwal 2017년 3월 13일
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