Convert to grayscale using the weights 0.299, 0.587, 0.114

NumPy · from Capstone: edit a photo with nothing but NumPy

3-D arrayschannel axisslicingbroadcastingnp.whereastypeclip

Putting the kettle on…

Starting up…

Exercise 6

Convert to grayscale using the weights 0.299, 0.587, 0.114. Return a uint8 array of shape (120, 160).

your answer
stuck? the lesson behind it
Capstone: edit a photo with nothing but NumPy
Every idea from the track, applied to something you can see.