What in the %&$^ possessed MATLAB to replace a clean-working function with a sloppy one?
Info
Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.
Ältere Kommentare anzeigen
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 Kommentar
Andrew Reibold
am 13 Nov. 2014
Bearbeitet: Andrew Reibold
am 13 Nov. 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
Antworten (0)
Diese Frage ist geschlossen.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!