一. 图像是以数组的形式保存,high*width*channel
img.shape #(high,width,channel)
len(img.shape)
#gives you two, it has a single channel.
#gives you three, third element gives you number of channels
二.图像读入,显示和保存
from skimage import io #读入图像
io.imread('paths')
io.imshow()
io.imsave()
from PIL import Image #PIL也是一个强大的图像处理库
img=Image.open('paths')
img.show()
img.save()