python常用的两个图像处理函数
1. scipy.ndimage.imread(fname,flatten=False): 将图片转换为数组,如果mode默认为‘RGB’,则返回的数组的形状为(height , width, 3)
2. matplotlib.pyplot.imshow(image): 将表示图片的(height , width, 3)数组转换为图片并显示出来。
1. scipy.ndimage.imread(fname,flatten=False): 将图片转换为数组,如果mode默认为‘RGB’,则返回的数组的形状为(height , width, 3)
2. matplotlib.pyplot.imshow(image): 将表示图片的(height , width, 3)数组转换为图片并显示出来。