我想手动将 RGB 图像转换为灰度图像。我想知道的是如何获得 RGB 像素的红/蓝/绿值?
img = cv2.imread("images/penguins.jpg",0)
grey = img
for i in range(0,grey.shape[0]-1):
for j in range(0,grey.shape[1]-1):
img[i,j]=[ ]
Run Code Online (Sandbox Code Playgroud)
我不知道接下来要做什么
谢谢,对不起我的英语不好