图片操作scipy.ndimage.imread和scipy.misc.imresize
读图片str or file object--ndarray scipy.ndimage.imread(*args,**kwds) imreadis deprecated!imreadis deprecated in SciPy 1.0.0, and will be removed in 1.2.0. Useimageio.imreadinstead. 在1.2.0版本用imageio.imread代替 Read an image from a file as an array.从文件中把图片读成数组 This function is only available if Python Imaging Library (PIL) is installed.该功能只在安装了PIL情况下使用 Parameters: fname: str or file object The file name or file object to be read. flatten:bool, optional If True, flattens(扁平化)the color layers into a sin...