MATLAB: How to control the automatic gain of a webcam

automatic gaincameraimage acquisitionImage Acquisition Toolbox

I'm working with the Image Acquisition Toolbox and I'm facing a problem with the automatic gain of my camera. I need to keep a fixed gain (automatic gain disabled) and I would like to know if there is a possible solution to control it.
Also I would like to know if there are some cameras which are compatible with Matlab and have the capability to control the automatic gain.
Thank you very much in advance!

Best Answer

There should be a command to turn AGC (Automatic Gain Control) off, at least if it's a smart enough camera. If you don't see it in imaqtool then contact the manufacturer. Otherwise get a good machine vision camera. It's possible a cheap webcam doesn't have an "AGC off" setting.