Segmentation in Jupyter notebook

Hello everyone,

I’m trying to make a simply version of 3d slicer using the Jupyter notebook.
I would like to enable the « sphere » brush option and be able to choose the % of the brush in my def paint but didn’t find a way to do it properly.

image002

For now the brush is working find but only in 2d.

Thank you

I’ve managed to resolve my issue by adding this line:

    segmentEditorWidget.effectByName("Paint").setCommonParameter("BrushSphere", 1)

Hello everyone,

I’m currently coding in a 3d slicer Jupyter notebook in order to make a simplify version of 3d slicer with only the tools I need.
I would like to enable the « sphere » brush option and be able to choose the % of the brush in my def paint but didn’t find a way to do it properly.

For now the brush is working find but only in 2d.

Thank you!

Hugo

This topic should help:

1 Like

It worked for me thanks a lot!
I’m now trying to do the same thing with the diameter of the brush

This topic should help:

1 Like