Link to home
Start Free TrialLog in
Avatar of streaks619
streaks619

asked on

Video for Windows & MATLAB

I need to get an image from a camera using VfW (video for windows). This image must be then stored into a matrix in MATLAB.

Any ideas?

(the application is to get two consecutive frames, then subtract the matrices and highlight anything that does not equal 0 - showing any movement between the two frames, also known as a motion detector.)
ASKER CERTIFIED SOLUTION
Avatar of prashant_n_mhatre
prashant_n_mhatre

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ygal02
ygal02

Fortunatly, my speciallity is video motion recognition :)
And my fevorite tool is matlab...
But, I don't know the VfW format :(
Matlab does not support video formats (at least until the corrent version which is 6.0).
The only thing you can do is to export to frame files. You can do this with programs like adobe premmier or other video editting application.
The exproted frames can be in any of the matlab supported formats (tif, gif, png, jpg, bmp, etc.), but I personnaly recommands png (not patented, support 24bit colors and have lossless compression).
After having the frames in seperated image file you can read them into different matrices using the imread function (which belongs to the image processing toolbox) and do what ever you want.

Let us know if you have any problems/
Good Luck.
streaks619, do you need more information ?