Call this methods before run to set initial selection (must contains only actual foreground pixels). setForegroundRect can be called also to restrict selection area.
Parameter
Description
selectionMask
A TIEMask containing (set 1 or 255) foreground pixels
maskIsInside
If True the mask is inside the foreground, otherwise it is around the foreground