Jump to content

how can I render an image in Labview?


Recommended Posts

Posted

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?

Posted

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.

OpenCV MAT to picture.png

  • Like 1
Posted (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 by Rolf Kalbermatter

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.