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

조회 수: 8 (최근 30일)
Chuck37
Chuck37 2018년 11월 20일
답변: Image Analyst 2018년 11월 20일
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
Jan
Jan 2018년 11월 20일
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 2018년 11월 20일
The title of my question is the question. The venting of frustration is incidental.

댓글을 달려면 로그인하십시오.

채택된 답변

Walter Roberson
Walter Roberson 2018년 11월 20일
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 .

추가 답변 (1개)

Image Analyst
Image Analyst 2018년 11월 20일
See attached video processing examples that use VideoReader().

카테고리

Help CenterFile Exchange에서 Red에 대해 자세히 알아보기

태그

제품


릴리스

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by