08-12-2013 11:44 PM
hello , I want to know whether we can put image processing matlab code into the labview environment .I had seen the code such as fft,dft and some signal processing code can be executed in the labview . whether it is possible to run image processing code ?
1. I want to know openCV how compatible and used with labview?
2. how openCV used with labview and I need the necessary steps to be followed?
3. whether it is useful for tracking and recognition of moving objects ?
please reply it will be helpful for our project
08-14-2013 11:54 AM - edited 08-14-2013 11:55 AM
Hello,
Matlab is an excellent tool to be used in computer vision, since there are a lot of developers that offer open-source code. I mean, really there are tons of algorithms out there that can be used and a lot of them are really excellent.
But the main problem as i see it when trying to integrate Matlab code to Labview is the depth of the libraries. Labview has some (basic) Matlab functions (which are named differently, perhaps because of copyright?) but does not extend beyond that. So if you want to use your own Matlab code inside Labview you need to add all of the subfunctions to the Labview path and this is easier said than done. At one point I have been trying to achieve this, but gave up... Besides, Matlab code is really slow in Labview.
The best solution (for me anyway) is to use a dll (dynamic link library) that can be called via the call library node in Labview. You can use Matlab to build a dll, but in my research i went for openCV, which has a lot of vision algorithms that work really well. There you can find algorithms for face recognition and tracking, object tracking (see the link below), object classification, machine learning, etc... You have a lot of examples how to build a dll online.
You can check out a couple of my tests here if you like:
https://decibel.ni.com/content/blogs/kl3m3n
Best regards,
K