I am trying to write a function which does conversion from RGB to grayscale image. Values in grayscale image are calculated using ExGG (green extraction) method. Values are