LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

matlab处理图像后能否在labview的前面板显示?

我想在labview下做参数的设定和界面的设计,使用matlab script节点调用matlab对图像进行处理。然后在lv前面板上显示matlab处理过的图像。现在只能做到调用matlab script后matlab的窗口弹出plot和imshow的图像。能不能把这些图像在lv前面板显示啊?我不想让matlab弹出。谢谢指教!
0 Kudos
Message 1 of 20
(5,778 Views)
Use a picture control.
George Zou
0 Kudos
Message 2 of 20
(5,757 Views)
能否讲的详细点?我也用picture control试了,但是对于从matlab plot或者imshow出的图像不知道参数怎么传递。是不是不需要在matlab节点里面plot和imshow啊?请多指点一些。谢谢!
0 Kudos
Message 3 of 20
(5,747 Views)
What kind of data you got back from matlab?
 
You will need color depth (1, 4, 8, 16, 24, or 32), color table (1D array of U32), rectangular (cluster of 4 I32), and the image data array (1D array of U8).
 
You can use the functions on the Graphics & Sound => Picture functions Palette.

Message Edited by zou on 07-06-2006 09:15 AM

George Zou
Message 4 of 20
(5,740 Views)
You should post this question here: http://forums.ni.com/ni/board?board.id=2170  next time.
0 Kudos
Message 5 of 20
(5,733 Views)
matlab处理得到的图像应该是矩阵形式的数据。在连接image data array (1D array of U8)时,出现错误是两者的维数不同,前者2D array ,后者1D array 。请问该怎么解决?
0 Kudos
Message 6 of 20
(5,725 Views)
Use Flatten Pixmap.vi (Graphics & Sound => Graphics Format ).
George Zou
Message 7 of 20
(5,717 Views)
我按你给的思路做了,可是试了很多遍仍然没能成功,在某个参数的问题上仍出错。麻烦您给检查一下我这两个vi,看问题在哪里,该如何做才行?非常感谢!
Download All
0 Kudos
Message 8 of 20
(5,706 Views)
Problem of show1.vi
If the data come back from matlab is 256 colors (8 bit), you must provide a valid color table.   An empty color table cause incorrect display.
 
 
George Zou
0 Kudos
Message 9 of 20
(5,672 Views)
Dear Zou,
        How can I make a  valid color table? Could you give me an example? Thank you very much!
0 Kudos
Message 10 of 20
(5,667 Views)