I am new to slice and working on incorporating our own 3D segmentation model with slicer. And we would like to assume the slicer user does not know anything about code, so intend to write a python CLI code to do everything. I am wondering is it possible? If not, can you provide me some lights that what should I do?
The user specifies the input volume path, output volume path, and some other parameters, then our python code computes the segmentation. This can be done as shown here: SlicerPythonCLIExample/BlurImage.py at master · lassoan/SlicerPythonCLIExample · GitHub
But I would like to use this external python code (note not the interpreter provided in slicer) to render /plot/show the segmentation mask in slicer, is it possible? I know how to do this with the interpreter provided in slicer but not sure whether I can do this with totally external python code?