MATLAB Answers

How to Insert New Image in Video as first frame?

13 views (last 30 days)
voxey
voxey on 20 Jun 2019
Commented: voxey on 24 Jun 2019
How to Insert New Image in Video as first frame?

  0 Comments

Sign in to comment.

Answers (1)

Vismay Raj
Vismay Raj on 20 Jun 2019
Read the video using
videoObj = mmreader(FileName);
video = videoObj.read();
% the nth frame is accessed by video(:,:,:,n)
Read the image and append it
img = imread(filename);
video = cat(4,img,video);

  1 Comment

voxey
voxey on 24 Jun 2019
Vismay Raj , Its show Error. its not realated to my question.

Sign in to comment.

Sign in to answer this question.