Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Could IMAQ create.vi Create RGB U8 image

Excuse me, I would like to convert IplImage to IMAQ_Image, that is accessible in Gray image. while in the case of color image, the default image style of IplImage is RGB U8,and the colorseq is BGR. And IMAQ Create VI has RGB U32 and RGB U64. How could I realize the convert from BGR U8 to RGB U32? Or is there other way support BGR U8 in IMAQ?

 

0 Kudos
Message 1 of 3
(3,013 Views)

This can be accomplished by swapping the color planes R and B. Search for "ExtractColorPlane" and "ReplaceColorPlane".  I am not aware if there is a faster VI available which will do the job.

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

Thank you very much, I will try this vi.

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