Sucran
9/22/2017 - 7:43 AM

Numpy image channel change and channel

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])