Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How does opencv convert a bgr image to greyscale?

Hi,

I have a simple question. I read about the cvtColor function in the docs. I would like to know how OpenCV converts a BGR image to greyscale image.

According to the docs it uses the following formular.

formular

Is it correct, that the Y stands for the alpha channel and all values in this channel will be replaced by 0.299?

Thanks in advance!