I am acquiring image data from a camera that has a bit depth of 10 bits per pixel. I am setting up my VIDEOINPUT object to log data to disk, and I am acquiring data as follows:
file = avifile('logfile.avi');vid = videoinput('winvideo', 1);vid.LoggingMode = 'disk&memory';vid.DiskLogger = file;start(vid)file = close(vid.DiskLogger);delete(vid)clear vid
However, when I read the AVI file into MATLAB using MMREADER and examine the BitsPerPixel property:
vidObj = mmreader('logfile.avi');get(vidObj, 'BitsPerPixel')ans = 8
Each image in the AVI file seems to have a bit depth of only 8 bits per pixel.
Best Answer