import numpy as np
import cv2
import matplotlib.pyplot as plt
image = np.load("/root/userfolder/Dataset/IXI/IXI_LR/truncation_3x/T1/train/LR_T1_T_3X_0.npy")
saveimage_path = "/root/userfolder/Dataset/ixi_image/"
for i in range(0,image.shape[0]):
plt.imshow(image[i,:,:])
cv2.imwrite(saveimage_path + str(i)+".png",image[i,:,:])
plt.show()