Skip to main content
Version: 0.11.x

Function: orderQuad()

orderQuad(quad): Quad

Defined in: extensions/cv/ops/quad.ts:80

Reorders a quad's corners into the top-left, top-right, bottom-right, bottom-left order the rest of this module assumes, using their coordinate-sum and coordinate-difference extremes.

Parameters​

quad​

Quad

The quad whose corners may be in any order.

Returns​

Quad

The same corners, ordered TL, TR, BR, BL.

We are Software Mansion.