ComfyUI Node
PSN Luminance / Saturation Mask (Inpainting)
Thresholds image luminance or saturation into a binary mask, with optional erode/dilate cleanup. It does no semantic segmentation and recognises no objects.
PSN Luminance / Saturation Mask (Inpainting)
- image
- mask
- score_map
◄rule_id0►
◄score_threshold0.50►
◄morphology_radius0►
CategoryParametric/Image
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | The input image. | |
| rule_id | INT | 00–3 | Rule id. From 0 to 3. Default 0. |
| score_threshold | FLOAT | 0.500–1 | Score threshold. From 0 to 1. Default 0.5. |
| morphology_radius | INT | 00–16 | Morphology radius. From 0 to 16. Default 0. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| mask | MASK | — |
| score_map | IMAGE | — |