self.img = np.zeros([67, 512, 1])
self.img.transpose(1, 0, 2)
就会变成[512, 67, 1]
要是这个数组转换出来的imagedata,plot后发现反转了,那就得考虑一下给他的xyz轴转换一下~
self.image = np.flip(self.img, axis=0)
mark~
self.img = np.zeros([67, 512, 1])
self.img.transpose(1, 0, 2)
就会变成[512, 67, 1]
要是这个数组转换出来的imagedata,plot后发现反转了,那就得考虑一下给他的xyz轴转换一下~
self.image = np.flip(self.img, axis=0)
mark~