From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

二维数组转换为RGB图像问题

大家好,我现在是通过建立一个512×512的二维数组生成一幅黑白图像,但是现在我又要通过这个二维数组生成一个彩色图像,就是RGB图像。看到有个函数可以实现二维数组到彩色图像的转换,可是这个函数的2个连线端是U32和U64,我的二维数组是U8,直接把U8和U32连线的话,运行后会出现图像格式不对的错误,这要怎么办,求高手指点。

        我是通过三个模拟输入采集的RGB图像,用的卡说这三个通道不是同步的。

谢谢啦@!

0 Kudos
Message 1 of 4
(4,009 Views)

可使用IMAQ Cast Image转换图像格式试试

0 Kudos
Message 2 of 4
(3,762 Views)

你好!我想请问一下,我建立了一个二维数组,如何将它保存为黑白图像呢?

谢谢QQ图片20230523212414.png

0 Kudos
Message 3 of 4
(553 Views)

Use Intensity Graph Invoke node - Get Image to get the image data cluster, then use Write JPG File.vi to save to a jpg file.

 

George Zou
0 Kudos
Message 4 of 4
(529 Views)