Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Video for Matlab (VFM) [Help]

Status
Not open for further replies.

haya.a

New Member
I am working on a prjct where i need to track real time video.
I found this neat app for matlab called VFM.
The prblem is i cant seem to get it to work
I have followed these steps:
1) donwload vfm.m & vfm.dll
2) using the set path option in matlab i added these directories to the search path (the read me file said copy these files in 'matlab path directory')

I then try to use the commands vfm('grab') but get an error instead

>> vfm('grab')
??? Invalid MEX-file 'C:\Users\Work\Documents\MATLAB\vfm.dll':
C:\Users\Work\Documents\MATLAB\vfm.dll is not a valid Win32 application.

I am using windows vista and my matlab version is 7.5(r2007b)
Am I doing something wrong? Or cud it be that vfm is not compatible with this version or what?

QuaizY
 
I have researched to find that it is infact a matter of compatibility as Matlab 7.5 does not support .dll files but instead .mexw32
I have the c source to the .dll file.
The question is, how to compile the .dll file to .mexw32 using visual c++ 2005.
And then how to add the mex in matlab?

thanks....
 
I found this zipped folder online. Download it, it contains the .mexw32 file.
Now when i run it on matlab, there is prompt window to select my camera, but the o/p window is blank (white).
I wrote this code
>> while (1) imagesc(vfm('grab',1)); drawnow; end;
gives me an error saying
??? One or more output arguments not assigned during call to "vfm".

can someone please help me?
 
I had the camera ON while i was using this function.
So i guess the device was busy.
k its done.
Thank you electro-tech-online for this wonderful personal blog
 
Last edited:
really is an amazing personal blog you made yourself :D . only thing missing is a link to where you found the folder with the mexw32 type file. becasue im sitting with the same issues :)
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top