MATLAB: Does the Image Acquisition Toolbox support camera properties like Binning and Subsampling

amcapImage Acquisition Toolboximaq

I would like to make use of the Binning and Subsampling properties of my camera in MATLAB 7.7 (R2008b) using Image Acquisition Toolbox.

Best Answer

Depending on the device, there are a couple of ways in which Binning and Subsampling can be accessed in MATLAB using the Image Acquisition Toolbox.
Following are few guidelines on using these properties:
1.If the camera supports Binning and Subsampling, there is a possibility that the properties are device specific.
All device-specific properties are properties of video source objects, not video input objects. To access these device specific properties from MATLAB, use this code:
vid = videoinput('winvideo');
src = getselectedsource(vid);
get(src)
2.Binning is the property of the operating mode of the camera. For example, if the camera supports the formats such as: 'F7_Y8_1360x1024', 'F7_Y8_680x512', etc; we can see that 'F7_Y8_680x512' is the format which has smaller resolution. The smaller resolution format is the binned format and for using a binned mode, create a video input object as follows:
vid = videoinput('dcam', 1, 'F7_Y8_680x512');
Please check the output of IMAQSUPPORT. If there are any formats with a smaller resolution, one can make use of the binned modes by creating the VIDEOINPUT object as mentioned above.
3. Subsampling property can be replicated in MATLAB as follows:
subSampledImage = originalImage( 1:2:end, 1:2:end, : )
4.Many a times though the properties are listed in the camera’s documentation, one may not be able to use them in MATLAB since the WINVIDEO adaptor does not expose the properties in a way that the Image Acquisition Toolbox can work with them. In such cases, we suggest contacting the camera vendor and ask them to consider developing support for MATLAB and/or Image Acquisition Toolbox.