Skip to content

Instantly share code, notes, and snippets.

@lassoan
Last active May 28, 2022 02:21
Show Gist options
  • Save lassoan/84d1f9a093dbb6a46c0fcc89279d8088 to your computer and use it in GitHub Desktop.
Save lassoan/84d1f9a093dbb6a46c0fcc89279d8088 to your computer and use it in GitHub Desktop.
# This gist contained a script that automatically removes table from a CT volume.
# The code was improved and turned into a Slicer module, available in the Sandbox extension:
# https://github.com/PerkLab/SlicerSandbox#remove-ct-table
#
# Source code:
# https://github.com/PerkLab/SlicerSandbox/blob/master/RemoveCtTable/RemoveCtTable.py#L251
@ilophy
Copy link

ilophy commented Oct 31, 2020

The code works well in 3D slicer.
I'm struggling to understand how I can apply this to my own patient image?

  1. Loading CT scan in 3D slicer.
  2. Apply the code by changing "masterVolumeNode = sampleDataLogic.GetMasterVolumeNode()".

And I get the Slicer error " Wrap solidify failed: Input segment closed surface representation is empty.

Please help me how to solve this problem.

Oh!!! I appreciate you a lot for sharing this code for everybody.

@lassoan
Copy link
Author

lassoan commented May 28, 2022

The is now available in the Sandbox extension in 3D Slicer with a convenient GUI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment