thenoob94 Posted March 6, 2023 Report Share Posted March 6, 2023 I am trying to read in an image via opencv pass the pointer to lv. Then I want to load the image from the pointer and render it in lv. How would I do this? I am running linux so there is no vision module and no IMAQ. I also thought about passing the image as an array to lv but there seems to be no option to turn the array to an image that could be rendered in lv. Any suggestions? Quote Link to comment
Antoine Chalons Posted March 6, 2023 Report Share Posted March 6, 2023 i guess you're stuck with the 2d picture control Quote Link to comment
Gribo Posted March 6, 2023 Report Share Posted March 6, 2023 You will have to convert the OpenCV MAT to LV picture. The MAT object has a ToBitmap method, which can generate a LV compatible bitmap. I attached a VI that uses the EmguCV .NET wrapper. 1 Quote Link to comment
Antoine Chalons Posted March 6, 2023 Report Share Posted March 6, 2023 I'm confused, .NET works on Linux? Quote Link to comment
Gribo Posted March 6, 2023 Report Share Posted March 6, 2023 Mono does.. It was just an example. Quote Link to comment
Rolf Kalbermatter Posted March 6, 2023 Report Share Posted March 6, 2023 (edited) 3 hours ago, Gribo said: Mono does.. It was just an example. But LabVIEW for Linux (and Mac and any other non-Windows version) has no .Net functionality, no matter if you try to use Mono, or .Net Core. Edited March 6, 2023 by Rolf Kalbermatter Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.