LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to combine 2 rgb image that produce a new combined rgb image?

Solved!
Go to solution

Is it possible to combine 2 rgb image that produce a new combined rgb image?

for example i want to combine rgb image A and B
image A : contains 255,0,0 (red)

image B : contains 0,255,0 (green)

result : rgb image display 255,255,0 (yellow)

0 Kudos
Message 1 of 4
(900 Views)
Solution
Accepted by topic author PULSE.Wannabe

Have you tried the IMAQ function IMAQ Add with the plus sign in the icon?

 

Note: IMAQ Vision is a paid add on. If you don’t have that you need to explain in more detail how you get those images and how you plan to access the pixel data in it.

Rolf Kalbermatter
My Blog
0 Kudos
Message 2 of 4
(895 Views)
Solution
Accepted by topic author PULSE.Wannabe

What datatype is the current image and how do you read it into LabVIEW?

 

Using plain LabVIEW, you can convert each to a 24bit pixmap (i.e. a U32 2D array), then do a logical bitwise OR of the two, then convert it back to image data cluster. (Of course you can also work directly on the 1D U8 "image" array in the "image data" cluster, which would be equally easy and is what I would probably do.)

 

To get more specific advice, attach your code and two images.

0 Kudos
Message 3 of 4
(866 Views)

Ah yes i can do it with imaq add, i never thought imaq add can add rgb colors just like that, thanks a lot !

0 Kudos
Message 4 of 4
(834 Views)