I have a 3D-numpy array of a gray image, which looks something like this:
[[[120,120,120],[67,67,67]]...]
Obviously I have eve
If the shape of your ndarray is (M, N, 3), then you can get an (M, N) gray-scale image like this:
ndarray
>>> gray = img[:,:,0]