09-10-2013 02:34 AM
Dear Folks,
Am working on integration of opencv library function to LabVIEW. I can able to get all the lib functions by .NET Constructor node to LabVIEW. I need to pass the values to the functions using .NET reference. How can i do this,, Can any one give me an idea.,
09-10-2013 10:46 AM
You need to know what type of .NET object is the correct type for the parameter, then create an instance of that object (for example using a .NET constructor). That object should have a method to assign data to it. If you have a link to documentation for this specific function I might be able to provide more specific help.
09-11-2013 12:25 AM
@nathand wrote:
You need to know what type of .NET object is the correct type for the parameter, then create an instance of that object (for example using a .NET constructor). That object should have a method to assign data to it.
Thanks for your reply nathand,
I want to passs the array to the source terminals. Can you guide me how to create the instance of the object?
Waiting or your reply..
09-11-2013 02:32 AM - edited 09-11-2013 02:33 AM
Then it sounds like you need to create an Array-object, probably in system.data (cant find my way around .net for my life ^^) and feed your array as data to that.
There's a build in function to do that for you though. "To .NET object" converts primitives.
/Y
09-11-2013 11:29 AM
@Silver_Shaper wrote:
I want to passs the array to the source terminals. Can you guide me how to create the instance of the object?
Does the To .NET Object VI do what you need here?
If not, and if the correct parameter type is a .NET array, then you can follow the example here: http://forums.ni.com/t5/LabVIEW/How-to-pass-a-Labview-array-into-a-C-NET-array-object/m-p/1992795#M6... However, you should confirm that it is the correct type for the function you want to call.
01-04-2016 09:43 AM
Dear Sir
Did you ever manage to get OpenCV working in LabView?
If you did, do you have a few examples?
Did you have to write any wrapper functions of your own, or did you manage to make use of off the shelf wrappers (emgu cv?)
Best regards