LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to build an optimized color image in IMAQ from R, G and B vectors?

Solved!
Go to solution

Dear all, I have the R, the G and the B elements of a RGB image contained in three different vectors.

I am currently using the program in attachment to obtain the color image in IMAQ.

This program works perfectly but I would like a faster program without two nested loops.

Is there a better solution in IMAQ?

Best regards

Max

 

 

image from RGB .png

0 Kudos
Message 1 of 3
(2,611 Views)
Solution
Accepted by topic author max_tomatis

Maybe you prefer running 3 x IMAQ Replace Color Plane.

I prefer - as you have the color channels in their native 2D array U8 form - using the LabVIEW join (because of the fewer wiring and the speed) and write the resulting 2D array of U32 to the image.  The performance is excellent - especially when highlighting the execution.  Smiley Very Happy

If anyone has a better implementation: I am interested in it.

0 Kudos
Message 2 of 3
(2,598 Views)

Dear Guenter Mueller,  thank you for the reply.

I have tried your suggestion and it works fine.

One question why do you use a u16 conversion in your attached example ?

Regards

Max

0 Kudos
Message 3 of 3
(2,566 Views)