Spleen 3D Segmentation - output segmentation does not invert properly #1170
-
Describe the bug To Reproduce Expected behavior Hoping to get some insight in this. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Hi @park-minjun, may I know your MONAI version? I just tested spleen_segmentation_3d.ipynb on the latest version and visualize the output with ITKSnap, everything looks well. Could you please update your MONAI version and test the notebook again? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hello, thank you for your response. My MONAI version is 1.1. Here are the the other config data printed with print_config(): MONAI version: 1.1.0+24.g6cb4ced0 Optional dependencies: Visualizing the output only with ITKSnap results in something like this for me, which I see is anatomically correct, but the issue arises when I try to overlay the original volume with the output segmentation. Interestingly, attempting to open the original volume with the output segmentationdoes not seem to work as I get an error regarding segmentations having multiple components, but one component being supported by ITK Snap. This error does not occur when I open it with 3D Slicer; instead, a similar error with wrong oriented slice is shown. Do you have any pointers to what else I could look into? I should also note that the matplotlib looks fine when plotted, so maybe it's less of an InvertD issue but more of a SaveImaged issue? Or an error that I'm not aware of my visualizer, although I have tried both 3D Slicer / ITK Snap. |
Beta Was this translation helpful? Give feedback.
-
Hi @park-minjun, you could remove
Hope it can help you, thanks! |
Beta Was this translation helpful? Give feedback.
-
You could visualize it correctly is due to it only selects the foreground channel when plotting. |
Beta Was this translation helpful? Give feedback.
Hi @park-minjun, you could remove
to_onehot
inAsDiscreted
(inpost_transforms
), then it will only save the output with one channel, then you could overlay them in the itksnap.Hope it can help you, thanks!