im_2015 = tiff.imread(FILE_2015).transpose([1, 2, 0])#转为heigh width channel im_2017 = tiff.imread(FILE_2017).transpose([1, 2, 0]) width,heigh,_=im_2015.shape matrix = np.reshape(matrix, [w, h, d])