| Image Acquisition Toolbox | ![]() |
Return information about available image acquisition hardware
Syntax
out = imaqhwinfoout = imaqhwinfo('adaptorname')out = imaqhwinfo('adaptorname','field') out = imaqhwinfo('adaptorname',deviceID)out = imaqhwinfo(obj)out = imaqhwinfo(obj,'field')
Description
out = imaqhwinfo
returns a structure, out, that contains information about the image acquisition adaptors available on the system. An adaptor is the interface between MATLAB and the image acquisition devices connected to the system. The adaptor's main purpose is to pass information between MATLAB and an image acquisition device via its driver.
out = imaqhwinfo(' returns a structure adaptorname')
out that contains information about the specified adaptor. The information returned includes adaptor version and available hardware for the specified adaptor. To get a list of valid adaptor names, use the imaqhwinfo syntax.
returns the value of the specified field, out = imaqhwinfo('adaptorname','field')
field, for the specified adaptor. The argument field can be a single string or a cell array of strings. If field is a cell array, out is a 1-by-N cell array where N is the length of field. To get a list of valid field names, use the imaqhwinfo('adaptorname') syntax.
out = imaqhwinfo(' returns information for the device identified by the numerical device ID adaptorname', deviceID)
deviceID. The deviceID can be a scalar or a vector. If deviceID is a vector, out is a 1-by-N structure array where N is the length of deviceID.
returns a structure out = imaqhwinfo(obj)
out that contains information about the specified image acquisition object obj. If obj is an array of device objects, then out is a 1-by-n cell array of structures where n is the length of obj.
returns the hardware information for the specified field, out = imaqhwinfo(obj,'field')
field, for the device object obj. field can be a single field name or a cell array of field names. out is an m-by-n cell array where m is the length of obj and n is the length of field. You can return a list of valid field names with the imaqhwinfo(obj) syntax.
Example
This example returns information about all the adaptors available on the system.
imaqhwinfo ans = InstalledAdaptors: {'matrox' 'winvideo'} MATLABVersion: '6.5.1 (R13+)' ToolboxName: 'Image Acquisition Toolbox' ToolboxVersion: '1.0 (R13+)
This example returns information about all the devices accessible through a particular adaptor.
info = imaqhwinfo('winvideo') info = AdaptorDllName: [1x73 char] AdaptorDllVersion: '1.0 (R13+)' AdaptorName: 'winvideo' DeviceIDs: {[1]} DeviceInfo: [1x1 struct]
This example returns information about a specific device accessible through a particular adaptor. You identify the device by its device ID.
dev_info = imaqhwinfo('winvideo', 1) dev_info = DefaultFormat: 'RGB555_128x96' DeviceFileSupported: 0 DeviceName: 'IBM PC Camera' DeviceID: 1 ObjectConstructor: 'videoinput('winvideo', 1)' SupportedFormats: {1x34 cell}
This example gets information about the device associated with a particular video input object.
obj = videoinput('winvideo', 1); obj_info = imaqhwinfo(obj) obj_info = AdaptorName: 'winvideo' DeviceName: 'IBM PC Camera' MaxHeight: 96 MaxWidth: 128 TotalSources: 1 VendorDriverDescription: 'Windows WDM Compatible Driver' VendorDriverVersion: 'DirectX 9.0'
This example returns the value of a particular field in the device information associated with a particular video input object.
See Also
| imaqhelp | imaqmem | ![]() |
Learn more about the latest releases of MathWorks products: |
| © 1994-2010 The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |