问题描述
在could not broadcast input array from shape (2464,3280) into shape (2464,3280,3)
![在这里插入图片描述](https://img-blog.csdnimg.cn/0f9ec9673bb240b09c3c71a1c1ea0731.png)
解决方案:
经过报错分析,就是不能把(2464,3280)的图像数据传入(2464,3280,3)的数据类型中,经过对数据的分析可得:
imgL = cv2.imread('test1.png',0)
print(imgL.shape)
![在这里插入图片描述](https://img-blog.csdnimg.cn/ee5707b7b4b8460f8367dcf8cf350de6.png)
imgL = cv2.imread('test1.png')
print(imgL.shape)
![在这里插入图片描述](https://img-blog.csdnimg.cn/d9a15b540e8c4204829c34344e883bc8.png)
原因是灰度化的图像无法传入三通道的数组。