How can I log image frames to disk with a 12-bit camera?

조회 수: 1 (최근 30일)
I am trying to log an avi file on disk using the following commands:
logfile = avifile('hello.avi)
logfile.Colormap = gray(256);
but I receive the following errors:
??? Error using ==> avifile.set>setColormap
Colormap must no more than 256 entries.
Error in ==> avifile.set at 43
obj = feval(paramSetFcns{match},obj,values{i});
Error in ==> avifile.subsasgn at 14
obj = set(obj,param,value);

채택된 답변

MathWorks Support Team
MathWorks Support Team 2011년 6월 20일
This enhancement has been incorporated in Release 2011a (R2011a). For previous product releases, read below for any possible workarounds:
The ability to log 12-bit video feeds from the Image Acquisition Toolbox to an AVI file on disk is not possible.
The workaround is to log the frames to memory and then write to disk using IMWRITE.

추가 답변 (0개)

태그

아직 태그를 입력하지 않았습니다.

제품


릴리스

R2006b

Community Treasure Hunt

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

Start Hunting!

Translated by