Info
La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.
What in the %&$^ possessed MATLAB to replace a clean-working function with a sloppy one?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Over the last several versions, the sample code for using VideoReader went from this:
obj = VideoReader('avi_file_name.avi');
your_movie = read(obj);
to this %&^*ing mess:
movobj = VideoReader(mov);
w = movobj.Width;
h = movobj.Height;
mov = struct('cdata', zeros(h, w, 3, 'uint8'), 'colormap', []);
k = 1;
while hasFrame(movobj)
mov(k).cdata = readFrame(movobj);
k = k + 1;
end
Seriously. What were you guys smoking? I just want to know why this went from SIMPLE and PRETTY to COMPLICATED and BUTT-UGLY.
1 comentario
Andrew Reibold
el 13 de Nov. de 2014
Editada: Andrew Reibold
el 13 de Nov. de 2014
Do you have an actual question or are you just ranting.
It looks to me that there is now a lot more user customization demonstrated here making it a better sample (Thanks Mathworks!) , and its still simple enough that a highschooler (or maybe even a very smart monkey) that was taught matlab fundamentals could still figure it out
*shrug
Respuestas (0)
La pregunta está cerrada.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!