I have a numpy array, which represent image pixels,
shape of the array is (500, 800, 3)
I need to multiply each pixel with the formula:
pixel_color = r * 0.299 + g * 0.587 + b * 0.114
So, [r, g, b] -> [pixel_color, pixel_color, pixel_color]
How can I do this with numpy operations?
vectorize.