I noticed that the segment editor module is under the python. I was wondering if I could integrated segment editor module into my c++ qt app. Cuz running AI inference under python is much slower when it compared c++
@lassoan it seems some effect is implemented in Python version --ref Slicer/Modules/Loadable/Segmentations/EditorEffects/Python/SegmentEditorEffects at main · Slicer/Slicer · GitHub, so I guess migrating all the effects are not viable to do so. Does that make sense?
There is no difference in speed of running AI inference in Python and C++, because Python just adds a very thin wrapper over underlying highly optimized compiled code with negligible overhead.
C++/Python language choice is a minor detail. It is usually very easy to translate the code between these languages.
The important decision for you to make is if you want to develop a C++/Qt application from scratch or build it on a well-proven application framework, such as Slicer. I would of course recommend to build on Slicer, as you can save many years of development efforts.