DynamicRegionGrowThresholdSegmentationParams
Parameters for dynamic region growing using threshold method. The region grows based on grayvalue thresholds.
Import
import ScriptingApi as api
# Create parameter instance
params = api.DynamicRegionGrowThresholdSegmentationParams()
Properties
target_mask_name
Target mask name. If empty, a new mask will be created.
Type: str
seeds
List of seed points in world coordinates [x, y, z].
Type: list
lower_threshold
Lower threshold grayvalue. Voxels with values >= lowerThreshold are included.
Type: float
upper_threshold
Upper threshold grayvalue. Voxels with values <= upperThreshold are included.
Type: float
fully_connected
Connectivity type. False for 6-connectivity (face), True for 26-connectivity (full).
Type: bool
fill_cavities
Fill cavities in the resulting mask.
Type: bool
multiple_layer
Apply region growing to all slices (3D). If False, only applies to specified slice.
Type: bool
slice_plane
Target slice plane index (0=YZ, 1=XZ, 2=XY). Only used when multipleLayer=False.
Type: int
slice_index
Slice index in the specified plane. Only used when multipleLayer=False.
Type: int
replace_result
Replace the target mask content. If False, merges with existing mask.
Type: bool