Borrar filtros
Borrar filtros

Background subtraction method i am getting following error while reading video-please help me

1 visualización (últimos 30 días)
Warning: The end of file was reached before the requested frames were read completely. Frames 1 through 613 were returned.
??? Index exceeds matrix dimensions.
code:
obj=mmread
er('ATMvid.avi');
a=read(obj);
frames=get(obj,'numberOfFrames');
for k = 1 : frames-1
source(k).cdata = a(:,:,:,k);
source(k).colormap = [];
end

Respuesta aceptada

Walter Roberson
Walter Roberson el 24 de Feb. de 2013
Someone else had this recently and we did not figure out why they got the end of file message.
Instead of looping to numberOfFrames, go to size(a,4)

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by