Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Can we use Point Cloud Library(PCL) code in Labview

Hi,

 

I have a Labview StarterKit that i connected with kinect.I am processing the obtained kinect data with Point Cloud Library(PCL) . Now i want to use this code in Labview.Can anybody tell me how.

 

P.S. : For those who don't know PCL is just like Opencv except,it is for 3D image processing.

0 Kudos
Message 1 of 4
(5,923 Views)

Assuming you are working with a DLL, you first need to import that DLL into LabVIEW, using either Import Shared Library wizard, or doing it manually.  The import wizard almost never works, unless the header file was written with LabVIEW importing in mind.  Especially is you have lots of exotic type definitions.  All that being said, it would not be impossible for someone familiar with both PCL and LabVIEW.

Machine Vision, Robotics, Embedded Systems, Surveillance

www.movimed.com - Custom Imaging Solutions
0 Kudos
Message 2 of 4
(5,664 Views)

Hello,

 

I have used PCL, which uses the OpenNI framework to acquire the data from the Kinect device. You can check some of the results here:

 

https://decibel.ni.com/content/blogs/kl3m3n/2013/01/08/using-microsoft-kinect-to-visualize-3d-object...

 

and

 

https://decibel.ni.com/content/blogs/kl3m3n/2013/02/13/using-2-kinect-sensors-with-calibrated-point-...

 

I have built a dll that i call in Labview. The only downside is that my knowledge about passing the c++ structures to Labview via dll is limited. So instead i am copying the values (X,Y,Z,RGB) into four seperate vectors (and using "memcpy" to pass the values) which of course increases the processing time. But still, i achieved 30 fps using the qvga (320x240) resolution.

 

You do not need a header file (my advice is that you stay clear of the import shared library wizard), you just need to specify the correct function prototype with respect to the data you are passing.

 

If you are interested in this, i can post the source code, dll and a Labview example to one of the above links.

 

Best regards,

K

 


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."
0 Kudos
Message 3 of 4
(5,649 Views)

Hello,

 

I have finally made some time to post the C++ source code, .dll and a Labview example using Kinect in Labview (with PCL - Point Cloud Library).

 

The code can be found on the blog:

 

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

 

Hope this helps someone in their project.

 

Best regards,

K


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."
Message 4 of 4
(5,466 Views)