kl3m3n's blog

Community Browser
cancel
Showing results for 
Search instead for 
Did you mean: 

SIFT and SURF in LabVIEW with OpenCV

Klemen
Active Participant

In one of the previous posts I said (quote): “I just wish the Vision Module would by default include other popular computer vision algorithms for features detection…” and (also quote): “Since LabVIEW includes MathScript (support for .m files and custom functions) it would be interesting to try and implement some of the mentioned algorithms…“

I have been trying to implement some of the Matlab’s algorithms in LabVIEW, but found out that it is quite difficult to create custom functions (real functions, I mean, not just some add and divide stuff!). This is basically due to the fact that almost every custom function implemented in Matlab (open-source) has quite a lot of sub-functions which are needed to run the algorithms properly. And none of these are included in Mathscript in LabVIEW. They can be included in Mathscript “default directory” but… Well, try it and see for yourself.

So, instead I used a great CV open-source library – OpenCV (if you work with CV algorithms, you should know something about OpenCV) and built a .dll based on OpenCV to detect and match the features of two images using SIFT (scale invariant feature transform) and SURF (speeded up robust features).

The results of SIFT are shown in Figure 1 and the results of SURF in Figure 2. The corresponding keypoints of two images are connected by a line.

SIFT.jpg

Figure 1: SIFT feature detector.

SURF.jpg

Figure 2: SURF feature detector.

In the feature, I will try to test more algorithms in LabVIEW using OpenCV library. Mind that this testing was performed with default parameters, and filtering keypoints using the minumum distance criteria. No thorough testing wasn't performed yet.

Thanks for reading.

Be creative.

P.s. : See newer post for source code and dll.


https://decibel.ni.com/content/blogs/kl3m3n



"Kudos: Users may give one another Kudos on the forums for posts that they found particularly helpful or insightful."
Comments