Python Library for Local Threshold Effect

In Python through slicer, is there a way to run the local threshold effect like the following pseudocode?

set feature size to 6.000 mm
set threshold range to 245.00 to 1003.00
set type to grow cut
segment = point.localThreshold()

Thank you!

1 Like

You need to set the effect parameters and then call apply(ijkPoints). These examples should help with the details: https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#How_to_run_segment_editor_effects_from_a_script

1 Like