MCPcopy Create free account
hub / github.com/HanHan55/Graph2plan / invert_box_transform

Function invert_box_transform

PostProcess/g2p/box_utils.py:81–106  ·  view source on GitHub ↗

Compute the box transform that, when applied to anchors, would give boxes. Inputs: - anchors: Box anchors of shape (N, 4) in the format [xc, yc, w, h] - boxes: Target boxes of shape (N, 4) in the format [xc, yc, w, h] Returns: - transforms: Box transforms of shape (N, 4) in the format

(anchors, boxes)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected