Info

This question is closed. Reopen it to edit or answer.

What in the %&$^ possessed MATLAB to replace a clean-working function with a sloppy one?

1 view (last 30 days)
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 Comment
Andrew Reibold
Andrew Reibold on 13 Nov 2014
Edited: Andrew Reibold on 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

Answers (0)

This question is closed.

Community Treasure Hunt

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

Start Hunting!