How to Add a Python Script for Brain Extraction in a Custom 3D Slicer Template

software
Sat, 15 Mar 2025 17:19:11 +0000
Support

Hello everyone,

I want to integrate a Python script for brain extraction into a custom 3D Slicer template created using Kitware’s SlicerCAT framework. My goal is to add my own scripted module and make it functional within the custom application.

Could anyone guide me on how to:

1. Properly add a Python-scripted module to the custom template?

2. Ensure the script runs correctly within 3D Slicer?

3. Build and test the changes effectively?

Additionally, I have two solution (.sln) files:

build/safe.sln

build/slicer_build/slicer.sln

Which one should I open in Visual Studio to see my changes and work on the project?

Any help, guidance, or references would be greatly appreciated. Thanks in advance!

2 posts - 2 participants