Using Nvidia C programming to convert an RGB image to greyscale.