create_adaptive_zone_masks
Creates three zone masks (core, shell, outer) by sampling the bright subject in the image's luminance, then feathers and blurs each zone to enable targeted adjustments.
Instructions
Create three masks from percentiles of the image's own luminance. Subject pixels are those brighter than the background median + 5 MAD, sampled inside a circle of radius 0.35 * min(width, height) around their brightness-weighted centroid. Core = above the subject percentile 85 + 10 * core_bias; shell = a triangular ramp between the 25th percentile and the core level, peaking at their midpoint; outer = subject level up to the 25th percentile. Each is feathered over 20 px outside the circle and Gaussian-blurred with sigma 5, 10 and 20. Creates views azone_core, azone_shell and azone_outer, replacing views of those names; fewer than 50 sampled subject pixels is an error.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view_id | Yes | Source view the masks are computed from | |
| core_bias | No | Position of the core threshold on its 0-1 scale: 0 = percentile 85, 1 = percentile 95 (default 0.5, the middle of the scale) |