create_zone_masks
Creates core, shell, and halo masks from three luminance thresholds, each ramped and Gaussian-blurred, replacing existing mask views.
Instructions
Create core, shell and halo masks from three fixed luminance thresholds. Luminance is the Rec.709 luma of a color view, the samples of a gray one: core = above core_clip, shell = shell_clip to core_clip, halo = halo_clip to shell_clip, each ramped linearly from 0 to 1 across its band and Gaussian-blurred with sigma 8, 12 and 20. Creates views mask_core, mask_shell and mask_halo, replacing views of those names. Requires halo_clip < shell_clip < core_clip < 1.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"view_id": "<view_id>",
"core_clip": "<core_clip>",
"shell_clip": "<shell_clip>",
"halo_clip": "<halo_clip>"
},
"name": "create_zone_masks"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view_id | Yes | Source view the masks are computed from | |
| core_clip | Yes | Luminance above which a pixel is in the core mask (0-1) | |
| halo_clip | Yes | Luminance above which a pixel, up to shell_clip, is in the halo mask (0-1) | |
| shell_clip | Yes | Luminance above which a pixel, up to core_clip, is in the shell mask (0-1) |