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

1 view (last 30 days)
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);

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 20 Jun 2011
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.

More Answers (0)

Tags

No tags entered yet.

Products


Release

R2006b

Community Treasure Hunt

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

Start Hunting!