How to combine Computer Vision Toolbox with Image Acquisition toolbox

Asked by Alessandro Manzoni on 10 Aug 2012
Latest activity Closed by Walter Roberson on 20 Aug 2012
This question is closed and may reopen in the future if edited.

Hi,

How can I combine these toolbox?

For example, if I would apply vision.OpticalFlow object to acquisition, how can I do it?

6 Comments

Walter Roberson on 10 Aug 2012

Please see the guide to tags and re-tag this question; see http://www.mathworks.co.uk/matlabcentral/answers/43073-a-guide-to-tags

Alessandro Manzoni on 16 Aug 2012

I followed all the user guide of Image processing toolbox and Computer Vision Toolbox, and I saw that Computer Vision is used to process videofile. I would know if it can process a webcam video stream.

Alessandro Manzoni

Tags

No tags are associated with this question.

1 Answer

Answer by Image Analyst on 16 Aug 2012

Yes you can. Just use

snappedImage = getsnapshot(videoObject);

to get a frame of live video from a video camera, instead of pulling it from a video file on disk.

1 Comment

Alessandro Manzoni on 20 Aug 2012

Ok. But, for example, if with

vid = videoinput('nameadaptor', ID, 'Format');

I create the object for the acquisition by cam, and with

optical = vision.OpticalFlow;

I create the object for the optical flow...

how can I make to work optical flow object with acquisition object ?

Image Analyst

Contact us