np.array(image)的作用

result = np.array(image)  ==>  result的shape=[width,height,channels]

result = np.array(image.getdata())  ==> result的shape=[width*height,channels]

 

有道词典
result = np.arr ...
详细 X
结果= np.array(图像)= = >结果的形状=(宽度、高度、通道)

猜你喜欢

转载自blog.csdn.net/Strive_For_Future/article/details/82787068