Commit 9cd7e1f3 authored by sjromuel's avatar sjromuel
Browse files

d

parent d2ad82ff
......@@ -179,7 +179,7 @@ def main():
if npys3d:
y_pred3d = np.flip(y_pred3d)
#y_pred3d = np.flip(y_pred3d)
#np.save(img_savepath + "P" + str(TP_num).zfill(2) + "_pred3D", y_pred3d)
np.save("data/npy_thresh/" + "P" + str(TP_num).zfill(2) + "_mr_ctunetpred.gipl", y_pred3d)
print("ypred shape: ", np.shape(y_pred3d))
......
......@@ -12,9 +12,10 @@ from datetime import datetime
img = np.load("data/npy_thresh/P01_250_thresh.gipl.npy")
print(np.shape(img))
for i in range(np.shape(img)[0]):
plt.imshow(img[i,:, :], cmap=plt.cm.bone)
plt.show()
img = np.flip(img)
#for i in range(np.shape(img)[0]):
plt.imshow(np.flipud(img[1,:, :]), cmap=plt.cm.bone)
plt.show()
'''mr_img = np.load("data/npy/P03_mr_T1.gipl.npy")
ct_img = np.load("data/npy/P03_mr_ctseg_gt.gipl.npy")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment