From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass a openCV Mat from C/C++ DLL to Labview

Full Question:

          What is the best way to handle a openCV Mat given in a C/C++ DLL to use the data in Labview?

Problem:

        A C/C++ DLL is given where i have a global Mat which contains data. Now i wanna use this data in LabView.

       What is the best and most efficient way  to pass a openCV Mat to LabView?

       I tried it by passing an in/out pointer parameter, where i tried to pass the Mat data starting adress, but it didn´t work. 

 

 

0 Kudos
Message 1 of 2
(5,482 Views)

Hi

 

Did you already have a look at the following post? Have a look at  the solution in green.

http://forums.ni.com/t5/Machine-Vision/How-can-I-get-an-image-back-to-labview-from-opencv-dll-code/m...

 

Did this help?

 

Best,

Ale

0 Kudos
Message 2 of 2
(5,425 Views)