Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

How to use IMAQ extract color panel in a LabView file?

I want to change a color image into a greyscale image. Therefore I want to use the function IMAQ extract color panels but I don't know how to insert it in my LabView application.

Please, can anyone give me some advice ?!!!
Thx, Birgit
0 Kudos
Message 1 of 2
(5,184 Views)
Birgit,

If you want all of the color planes, you can use IMAQ ExtractColorPlanes. Allocate an 8-bit image for each of the color planes. Wire the original color image and each of the 8-bit images for the color planes on the left and bottom of the vi. The outputs on the right side will be the same images, and they will each contain the desired color plane. The input at the top of the vi controls which color planes are extracted (RGB, HSI, etc.) Grayscale will probably be the I plane in HSI.

If you just want a grayscale image, use IMAQ ExtractSingleColorPlane instead. Wire the color image to Image Src, and wire an 8-bit image to Image Dest. Select the color plane using the top input, and it will come out on the right side.

Bruce
Bruce Ammons
Ammons Engineering
Message 2 of 2
(5,184 Views)