Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Converting colour image to 8-bit greyscale

I have been developing software using using ComponentWorks IMAQ Vision in Visual C++ for
a monochrome camera and now wish to port some of the code to an system running a colour camera.

I wish to read in composite video colour images and convert them to 8-bit greyscale. This is because there seems to be no autothresholding function for colour images, just colorThreshold which requires manual choice of threshold values. If I convert the colour image into monchrome I can use the nice AutoMthreshold function which is used in my original algorithm.

Is there a way to convert the images quickly and simply?
0 Kudos
Message 1 of 3
(3,469 Views)
My area of expertise is LabVIEW, but I am sure there are equivalent functions in ComponentWorks.

There are functions that will extract one of the color planes as a greyscale image. You will have to decide which color plane you want. Intensity is usually a good choice.

Bruce
Bruce Ammons
Ammons Engineering
0 Kudos
Message 2 of 3
(3,469 Views)
Hi,
u can use IMAQ extract color planes to three color planes from a RGB or HSL or HSV image.
0 Kudos
Message 3 of 3
(3,469 Views)