Skip to content

Instantly share code, notes, and snippets.

@lassoan
Last active May 28, 2022 02:21
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • 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