Skip to contents

Intersection over union of two (x1,y1,x2,y2) boxes

Usage

morie_geron_box_iou(a, b)

Arguments

a, b

Numeric length-4 vectors.

Value

Scalar IoU.

Examples

V <- c(1, 2, 3, 4, 5, 6, 7, 8)
morie_geron_box_iou(V, V)
#> [1] 1