GrowCutSegmentationParams
Parameters for GrowCut segmentation. GrowCut uses seed masks to segment regions based on local competition.
Import
import ScriptingApi as api
# Create parameter instance
params = api.GrowCutSegmentationParams()
Properties
seed_mask_names
List of seed mask names defining different regions.
Type: list
target_mask_name
Target mask name. If empty, a new mask will be created.
Type: str
masking_mask_name
Optional mask name to segment within. If empty, no masking is applied.
Type: str
distance_penalty
Distance penalty (seed locality). Higher values favor local growth.
Type: float
use_threshold
Enable grayvalue thresholding to constrain segmentation.
Type: bool
lower_grayvalue
Lower grayvalue threshold (only used when useThreshold=True).
Type: float
upper_grayvalue
Upper grayvalue threshold (only used when useThreshold=True).
Type: float
replace_result
Replace the target mask content. If False, merges with existing mask.
Type: bool