<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/models/blob/v2.20.0/official/vision/ops/box_ops.py#L297-L328) |

Computes outer box encloses an object with a margin.

    tfm.vision.box_ops.compute_outer_boxes(
        boxes, image_shape, scale=1.0
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `boxes` | a tensor whose last dimension is 4 representing the coordinates of boxes in ymin, xmin, ymax, xmax order. |
| `image_shape` | a list of two integers, a two-element vector or a tensor such that all but the last dimensions are `broadcastable` to `boxes`. The last dimension is 2, which represents \[height, width\]. |
| `scale` | a float number specifying the scale of output outer boxes to input `boxes`. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| `outer_boxes` | a tensor whose shape is the same as `boxes` representing the outer boxes. |

<br />