ComfyUI Node
Mpi Mask Square Bbox
Square bounding box around a mask, centered on the mask and clamped (shrunk if needed) to stay fully inside the image. Outputs a filled square MASK plus its x, y, and side length.
Mpi Mask Square Bbox
- mask
- square_mask
- x
- y
- size
◄padding0►
CategoryMpiNodes/ImgOps
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| mask | MASK | — | |
| padding | INT | 00–4096 | Pixels added around the tight mask box before squaring. |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| square_mask | MASK | — |
| x | INT | — |
| y | INT | — |
| size | INT | — |