Commit dad6bec6 authored by sjromuel's avatar sjromuel
Browse files

d

parent 5505b5b6
......@@ -179,6 +179,7 @@ def main():
if npys3d:
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))
......
......@@ -10,11 +10,11 @@ from scipy import ndimage
from datetime import datetime
img = np.load("data/npy_thresh/P01_mr_ctunetpred.gipl.npy")
img = np.load("data/npy_thresh/P01_250_thresh.gipl.npy")
print(np.shape(img))
plt.imshow(img[10,:, :], cmap=plt.cm.bone)
plt.show()
for i in range(np.shape(img)[0]):
plt.imshow(img[i,:, :], 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