Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

Video Processing problem with saving the AVI afterconverting it from an array

1 vue (au cours des 30 derniers jours)
Minh Tong
Minh Tong le 29 Mar 2011
Clôturé : MATLAB Answer Bot le 20 Août 2021
Hi,
I'm new to MATLAB and i need some help. so far i have made an AVI background remover by using Z-stack for the series of images in the AVI and the function looks like this:
C = {'Moviessmall.avi';'Moviessmall_2.avi';'Moviessmall3.avi'};
for ii = 1:length(C)
Vid1 = VideoReader(C{ii})
Vid1Frames = read(Vid1)
Vid2Frames = rgb2gray(Vid1Frames);
Vid3Frames = Vid1Frames(:,:,1:450);
VidB = median(Vid3Frames, 3);
VidB2 = repmatrepmat(VidB, [1 1 450]);
Vid2 = Vid3Frames-VidB2;
the final step of the function it to subtract two arrays to get the final produce but i wanted an AVI at the end and not an array. also i would like to know how to then save the AVI into a Folder after the array has been converted to an AVI. If anyone can point me to the right direction that would help alot.
Thank you,
Minh

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by