MATLAB: Logitech Brio 4K webcam delivers only 1920×1080 still image (4k not available)

40004kbriohighlogitechMATLABresresolutionwebcam

I purchased a Logitech Brio to record high resolution still images (no video).
However, the max resolution I see is 1920×1080. How can I get a 4K still image?
>> webcamlist
ans =
1×1 cell array
{'Logitech BRIO'}
>> cam=webcam
cam =
webcam with properties:
Name: 'Logitech BRIO'
AvailableResolutions: {1×19 cell}
Resolution: '640x480'
Gain: 0
WhiteBalanceMode: 'auto'
Zoom: 100
Tilt: 0
Exposure: -7
ExposureMode: 'auto'
Brightness: 128
WhiteBalance: 4130
Saturation: 128
Pan: 0
Contrast: 128
BacklightCompensation: 1
Sharpness: 128
Focus: 0
FocusMode: 'auto'
>> cam.AvailableResolutions
ans =
1×19 cell array
Columns 1 through 9
{'640x480'} {'160x120'} {'176x144'} {'320x180'} {'320x240'} {'352x288'} {'340x340'} {'424x240'} {'440x440'}
Columns 10 through 18
{'480x270'} {'640x360'} {'800x448'} {'800x600'} {'848x480'} {'960x540'} {'1024x576'} {'1280x720'} {'1600x896'}
Column 19
{'1920x1080'}

Best Answer

The likely reason for higher resolutions not being listed as available is because Logitech Brio 4k supports only compressed video formats at resolutions higher than 1920x1080.
Support for compressed video formats when using MATLAB WEBCAM is currently not available, but is under consideration for a future MATLAB release.
Note that Image Acquisition Toolbox with the winvideo adaptor (on Windows) does support compressed video formats such as MJPEG, so this might be used a workaround if Image Acquisition Toolbox is available. However, note that Image Acquisition Toolbox does not currently (as of MATLAB R2018b) does not support H.264 format (which some camera models might use for high resolution video formats). To detect which resolution and video formats a camera supports you can use the detectDevices utility in MATLABROOT\toolbox\imaq\imaqextern\utilities\detectDevices\win64
More information about winvideo adaptor you can find here in the documentation: