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,182 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,172 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

http://digital.ni.com/manuals.nsf/websearch/0D47CC41B45FB99786256ED80068A46C

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