Ich habe die folgenden RGB-BildimRGB
plt.imshow zeigt Farbbilder für Graustufenbilder in IPython
import cv2
import matplotlib.pyplot as plt
#Loading the RGB image
imRGB = cv2.imread('*path*')
imRGB.shape
>>(128L, 128L, 3L)
#plotting
plt.imshow(imRGB)
ich diese in ein Graustufenbild umwandeln imGray
imGray = cv2.cvtColor(imRGB, cv2.COLOR_BGR2GRAY)
imGray.shape
>>(128L, 128L)
#plotting
plt.imshow(imGray)
Frage: Warum wird das Graustufenbild imGray
wird farbig dargestellt?