box_cxcywh_to_xyxy: box_cxcywh_to_xyxy

View source: R/ops-box_convert.R

box_cxcywh_to_xyxyR Documentation

box_cxcywh_to_xyxy

Description

Converts bounding boxes from (c_x, c_y, w, h) format to (x_{min}, y_{min}, x_{max}, y_{max}) format. (c_x, c_y) refers to center of bounding box (w, h) are width and height of bounding box

Usage

box_cxcywh_to_xyxy(boxes)

Arguments

boxes

(Tensor[N, 4]): boxes in (c_x, c_y, w, h) format 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.