How to Insert New Image in Video as first frame?
6 ビュー (過去 30 日間)
古いコメントを表示
How to Insert New Image in Video as first frame?
1 件のコメント
rasika priyadarshana
2020 年 4 月 4 日
function out=in_icon(A,im)
mov=Vread(A);
G=imread(im);
f=size(mov,2);
[h1 w1 c1]=size(G);
for k=1:1
mov(k).cdata(1:h1, 1:w1,:)=G;
end
out=mov;
implay(mov);
回答 (1 件)
Vismay Raj
2019 年 6 月 20 日
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);
2 件のコメント
rasika priyadarshana
2020 年 4 月 4 日
function out=in_icon(A,im)
mov=Vread(A);
G=imread(im);
f=size(mov,2);
[h1 w1 c1]=size(G);
for k=1:1
mov(k).cdata(1:h1, 1:w1,:)=G;
end
out=mov;
implay(mov);
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!