LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Conversion from either RGB or HSL to Grayscale color spaces

Is there an NIVision function that allows easy and fast conversion from either RGB or HSL images into grayscale images ? I know that I can directly manipulate each pixel to get a grayscale image, but want to know if there is a faster way by using NIVision-only functions. Thanks !
0 Kudos
Message 1 of 4
(4,561 Views)
I would recommend extracting the Luminance plane using the IMAQ ExtractSingleColorPlane.vi - this gives the best greyscale representation from a color image.
0 Kudos
Message 2 of 4
(4,551 Views)

Sorry - didn't realize you were using CVI:

The CVI function is:  imaqExtractColorPlanes

The 'IMAQ Vision for LabWindows/CVI Function Reference Help' will detail the usage of this function

https://www.ni.com/docs/en-US/bundle/322567a/resource/322567a.pdf

0 Kudos
Message 3 of 4
(4,550 Views)
Ok. I understand what you are saying, and makes a lot of sense. Thanks a lot !
0 Kudos
Message 4 of 4
(4,547 Views)