09-10-2009 03:21 AM
Well, CvArr and CvRect are object pointers. You can't do anything else in LabVIEW with them directly, but treat them as opaque pointers.
So you have several possible approaches here then:
1) use some Active X or .Net wrapper to access that library. I can't help you with that in any way as I do not consider that a good approach.
2) For every object pointer you need to write C function wrappers for every of its methods you ever want to access, and also for possible public variables you might want to access. Then write in LabVIEW an extensive library of VIs using the Call Library Node to do the more involved work.
3) You sit down and design a more LabVIEW friendly DLL function interface and write a wrapper DLL that translates between this function interface and the OpenCV interface.
This last one is the approach Hytekautomation took when developing the IVision library.
Rolf Kalbermatter
09-10-2009 01:08 PM
09-10-2009 01:11 PM

Rolf...