Scissors segment editor effects from a script

A post was split to a new topic: How to split segmentation the islands?

Hi Andras,
How to get the parameter value of the OTSU method for thresholding an image