How to combine Computer Vision Toolbox with Image Acquisition toolbox

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

Not sure exactly what you're asking. My answer would be: use the Image Acquisition Toolbox to acquire data, and process that signal using Computer Vision Toolbox functions. However, I'm not sure if this answers your question.
Yes, it what I'm asking. Sorry for the strange form of my answer.
How can I acquire data using image acquisition toolbox and process what I'm acquiring by Computer Vision Toolbox in real-time ?
You're basically asking "How can I write and use programs in MATLAB" so I recommend you view some of Doug Hull's video tutorials: http://blogs.mathworks.com/videos/
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.

Answers (1)

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

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 ?

This question is closed.

Tags

No tags entered yet.

Asked:

on 10 Aug 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!