Effacer les filtres
Effacer les filtres

how to combine two videos in matlab

9 vues (au cours des 30 derniers jours)
Algorithms Analyst
Algorithms Analyst le 18 Avr 2013
Commenté : mady rio le 5 Avr 2022
clc
close all
clear all
source1='LID1-High Illumination.AVI';
source2='ResultsLID.AVI';
vidobj1=VideoReader(source1);
vidobj2=VideoReader(source2);
frames1=vidobj1.NUmberofframes;
frames2=vidobj2.Numberofframes;
for f1=1:frames1
thisframe1=read(vidobj1,f1);
figure(1);imshow(thisframe1);
end
one video is input and second is output result how can I combine these videos to play in one image

Réponses (1)

Walter Roberson
Walter Roberson le 18 Avr 2013
for f1 = 1 : min(frames1, frames2)
thisframe1 = read(vidobj1, f1);
imshow(thisframe1);
drawnow();
thisframe2 = read(vidobj2, f1);
imshow(thisframe2);
drawnow();
end

Catégories

En savoir plus sur Images dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by