create_luminance_mask
Create a luminance mask from a color image using Rec.709 weighting, with optional blur, gamma, and shadow clipping to control mask range.
Instructions
Create a luminance mask from a color view: Y = 0.2126R + 0.7152G + 0.0722B, then an optional blur and shadow clip.
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": {
"source_id": "<source_id>",
"mask_id": "<mask_id>"
},
"name": "create_luminance_mask"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blur | No | Blur sigma applied to the mask (default 5) | |
| gamma | No | Gamma curve applied to the mask (default 1.0) | |
| mask_id | Yes | Name for the mask | |
| clip_low | No | Shadow clip threshold, below which the mask is 0 (default 0.10) | |
| source_id | Yes | Source color view ID |