How do I do what aviread used to do using videoreader?

3 Ansichten (letzte 30 Tage)
Chuck37
Chuck37 am 20 Nov. 2018
Beantwortet: Image Analyst am 20 Nov. 2018
I upgraded Matlab and things that used to be easy are now much more complicated. I could rewrite movie2avi pretty quickly, but videoreader is a worse when trying to created the functionality of aviread. I can get the frames, but colormap is missing. Why did they think we would want to replace one line with a dozen, including a for loop?
  2 Kommentare
Jan
Jan am 20 Nov. 2018
The forum cannot answer your question about the intention of the MathWorks staff. So do you have a question the forum can answer or is this just a statement about your level of frustration?
Which problem do you try to solve?
Chuck37
Chuck37 am 20 Nov. 2018
The title of my question is the question. The venting of frustration is incidental.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 20 Nov. 2018
videoreader readframe with 'native' option returns the usual cdata and colormap information . without the native option ind2rgb equivalent is automatically done returning the rgb version of the data .
The change was for efficiency . With aviread it always scanned the full file at the time it opened it and the buffer flow was not as good so it was slower and took more memory . The newer function is better for streaming type situations especially with larger videos that might not even fit in memory .

Weitere Antworten (1)

Image Analyst
Image Analyst am 20 Nov. 2018
See attached video processing examples that use VideoReader().

Kategorien

Mehr zu Introduction to Installation and Licensing finden Sie in Help Center und File Exchange

Tags

Produkte


Version

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by