- cv2方法:
image = cv2.imread(file)
返回:numpy of shape (height, width, 3), image[0]=image[1]=image[2]
- skimage方法
image = skimage.io.imread(file)
返回:numpy of shape (height, width)
image = cv2.imread(file)
返回:numpy of shape (height, width, 3), image[0]=image[1]=image[2]
image = skimage.io.imread(file)
返回:numpy of shape (height, width)