box_xywh_to_xyxy: box_xywh_to_xyxy

View source: R/ops-box_convert.R

box_xywh_to_xyxyR Documentation

box_xywh_to_xyxy

Description

Converts bounding boxes from (x, y, w, h) format to (x_{min}, y_{min}, x_{max}, y_{max}) format. (x, y) refers to top left of bouding box. (w, h) refers to width and height of box.

Usage

box_xywh_to_xyxy(boxes)

Arguments

boxes

(Tensor[N, 4]): boxes in (x, y, w, h) which will be converted.

Value

boxes (Tensor[N, 4]): boxes in (x_{min}, y_{min}, x_{max}, y_{max}) format.


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