Matlab Image Acquisition

August 22, 2009

Thanks to Madan!

I learnt Image acquisition using Matlab Image Processing toolbox.

Now I can acquire videos using Matlab tool. My goal is to learn identification of colours from the acquired videos.  For more details, please refer to Mr.Madan’s tutorial on image acquisition.

I have a Logitech Quick Cam Camera installed to my system.  Also, I have Matlab 7.5 installed in its place. To check whether your Matlab tool box has an Image Processing Tool Box, Here is what you have to do:

Bingo! Your Matlab software has the Image Processing Tool Box

Bingo! Your Matlab software has the Image Processing Tool Box

Now type : ‘ imaqhwinfo ‘ in the command window to find the installed video drivers in your PC.

Here is something which you may read:

>> imaqhwinfo
ans =
InstalledAdaptors: {‘coreco’  ‘winvideo’}
MATLABVersion: ‘7.5 (R2007b)’
ToolboxName: ‘Image Acquisition Toolbox’
ToolboxVersion: ‘3.0 (R2007b)’

>> imaqhwinfo

ans =

InstalledAdaptors: {‘coreco’  ‘winvideo’}

MATLABVersion: ‘7.5 (R2007b)’

ToolboxName: ‘Image Acquisition Toolbox’

ToolboxVersion: ‘3.0 (R2007b)’

Now I connect my web cam to the PC and here is what I do to read an image:

1)  Type the adaptor name and resolution of the video.

vid = videoinput(‘winvideo’,1,’RGB24_320x240′);

2) Preview the video using your matlab tool and enjoy by typing the following command

preview(vid);

Acquired video

More image processing tutorials to follow!