07-15-2013 08:12 AM
Hi. I am trying to display the 3-dimensional RGB image matrix/array (from MATLAB) in LabVIEW. MATLAB returns a 3D matrix with the RGB data, but it seems LabVIEW only takes 2D matrices. Is there anyway to display the image in labview?
Thanks!
Solved! Go to Solution.
07-16-2013 01:19 PM
07-17-2013 02:31 AM
...and here is the sample code (matlab and labview). Yesterday i didn't have access to my computer.
Best regards,
K
07-18-2013 03:00 AM
Dear Klemen,
Your sample code works great! Thank you very much for this.
Let me move a step further. The 3-dimensional 2D array has already been stored in the memory space (made dll with given matlab code). If there is any function to take R/G/B bit value of each plane in LabVIEW, would it be faster to read directly from memory (probably with array rearrangement or different order) and to display it?
Thanks!
Hyun K. Suh
07-18-2013 03:47 AM
Hello,
if you have a dll, you could call it in labview.
I do not know anything about creating a dll in matlab, but have some experience creating dll in c++. You can check out the code i've just attached to another thread here. You can use "call library function node" to use the dll in labview.
If you share the matlab code (and dll), maybe i can help you further.
Best regards,
K
07-18-2013 07:05 AM
Dear Klemen,
Thanks again for your quick help! The problem is solved.
Thanks super!
Hyun K. Suh