box_iou: Box IoU

View source: R/ops-boxes.R

box_iouR Documentation

Box IoU

Description

Return intersection-over-union (Jaccard index) of boxes. Both sets of boxes are expected to be in (x_{min}, y_{min}, x_{max}, y_{max}) format with 0 \leq x_{min} < x_{max} and 0 \leq y_{min} < y_{max}.

Usage

box_iou(boxes1, boxes2)

Arguments

boxes1

(Tensor[N, 4])

boxes2

(Tensor[M, 4])

Value

iou (Tensor[N, M]): the NxM matrix containing the pairwise IoU values for every element in boxes1 and boxes2


torchvision documentation built on Aug. 8, 2025, 7:27 p.m.