Hyperspectral, Multispectral, Remote Sensing, Opencv, Grayscale.
plt file_path = 'rgb.png' image = cv2.imread(file_path) print(image.shape) blue, green, red = cv2.split(image) plt.imshow(blue, cmap="gray") plt.show() plt.imshow(green, cmap="gray") plt.show() plt.imshow(red, cmap="gray") plt.show() The code above shows each channel in grayscale separately.