How can I plot the other axes (coronal and saggital) ?? #1766
Unanswered
AgustinSaturni
asked this question in
General
Replies: 1 comment
-
Hi @AgustinSaturni, you can try |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone, I trained the spleen segmentation model (https://github.com/Project-MONAI/tutorials/blob/main/3d_segmentation/spleen_segmentation_3d.ipynb) and now I'm trying to plot the results of my predictions applied in news tomographies. But the example only shows how to plot the axial view. How can I plot another view?? I tried with this:
original_image = loader(test_output[0].meta["filename_or_obj"])
plt.figure("check", (18, 6))
plt.subplot(1, 2, 1)
plt.imshow(original_image[:, 200,:], cmap="gray")
plt.subplot(1, 2, 2)
plt.imshow(test_output[0].detach().cpu()[1, :, 200, :])
plt.show()
But the image that plots its wrong:
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions