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

1 vue (au cours des 30 derniers jours)
MathWorks Support Team
MathWorks Support Team le 20 Juin 2011
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);

Réponse acceptée

MathWorks Support Team
MathWorks Support Team le 20 Juin 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.

Plus de réponses (0)

Tags

Aucun tag saisi pour le moment.

Produits


Version

R2006b

Community Treasure Hunt

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

Start Hunting!

Translated by