Error in extract foreground program,please help
Mostrar comentarios más antiguos
Code:
video='ATMvid.avi'
if ischar(video)
% Load the video from an avi file.
avi = aviread(video);
pixels = double(cat(4,avi(1:frameSkip:end).cdata))/255;
clear avi
else
% Compile the pixel data into a single array
pixels = double(cat(4,video{1:frameSkip:end}))/255;
clear video
end;
Error-??? Error using ==> double
Maximum variable size allowed by the program is exceeded.
Error in ==> extractForeground at 80
pixels = double(cat(4,avi(1:frameSkip:end).cdata))/25;
1 comentario
Walter Roberson
el 25 de Feb. de 2013
What is size(avi) and size(avi(1).cdata) and class(avi(1).cdata) ?
Respuesta aceptada
Más respuestas (1)
pratibha rane
el 28 de Feb. de 2013
0 votos
1 comentario
Image Analyst
el 28 de Feb. de 2013
Use better algorithms, I guess.
Categorías
Más información sobre Video Formats and Interfaces en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!