ComfyUI Node
Focus Point From Mask
Extract focus point from mask centroid. Use with SAM Detector or MaskPainter for interactive selection.
Focus Point From Mask
- image
- mask
- focus_point
- preview
- x
- y
◄fallback_x50.0►
◄fallback_y50.0►
CategoryRefocus/Defocus
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| mask | MASK | Mask from SAM, MaskPainter, or any mask source | |
| fallback_xopt | FLOAT | 50.00–100 | Fallback X% if mask is empty |
| fallback_yopt | FLOAT | 50.00–100 | Fallback Y% if mask is empty |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| focus_point | FOCUS_POINT | — |
| preview | IMAGE | — |
| x | INT | — |
| y | INT | — |