Note: This page has been translated by MathWorks. Please click here

To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.

To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.

Compute bounding box overlap ratio

`overlapRatio = bboxOverlapRatio(bboxA,bboxB)`

`overlapRatio = bboxOverlapRatio(bboxA, bboxB, ratioType)`

returns
the overlap ratio between each pair of bounding boxes `overlapRatio`

= bboxOverlapRatio(`bboxA`

,`bboxB`

)`bboxA`

and `bboxB`

.
The function returns the `overlapRatio`

value between `0`

and `1`

,
where `1`

implies a perfect overlap.

additionally
lets you specify the method to use for computing the ratio. You must
set the `overlapRatio`

= bboxOverlapRatio(`bboxA`

, `bboxB`

, `ratioType`

)`ratioType`

to either `'Union'`

or `'Min'`

.