I have a camera (Leopard USB camera LI-USB30-M021X) with winvideo compatible DirectShow driver which says it outputs images in YUY2 format. Now YUY2 is a format in which you normally use 16-bit per pixel to describe a color image. This camera does not actually capture color images though, in reality it captures 12-bit grayscale images which are then encoded into those 16-bits per pixel YUY2 format. Can I recover the original 12-bit data format in MATLAB somehow?
MATLAB: How does the winvideo adaptor in Image Acquisition Toolbox exactly return YUY2 data in YCbCr colorspace
Image Acquisition Toolbox
Best Answer