There are currently two commonly used methods for converting color images to grayscale images.
method 1
gray=(R+G+B)/3
Example
Method 2
gray=0.299*R + 0.587*G + 0.114*B
Example
There are currently two commonly used methods for converting color images to grayscale images.
gray=(R+G+B)/3
gray=0.299*R + 0.587*G + 0.114*B