image.shape[0]、[1]分别是高和宽
对于图像来说:
image.shape[0]——图片高h
image.shape[1]——图片长w
image.shape[2]——图片通道数channels
而对于矩阵来说:
shape[0]:表示矩阵的行数
shape[1]:表示矩阵的列数
对于图像来说:
image.shape[0]——图片高h
image.shape[1]——图片长w
image.shape[2]——图片通道数channels
而对于矩阵来说:
shape[0]:表示矩阵的行数
shape[1]:表示矩阵的列数