Skip to contents

ROI bounding box

Usage

at_roi_bbox(roi, call = rlang::caller_env())

Arguments

roi

An annot_roi.

call

The calling environment, for error reporting.

Value

A numeric vector c(xmin, ymin, xmax, ymax) in the ROI's stored coordinates.

Examples

at_roi_bbox(at_roi_circle(50, 50, 10, label = "a"))
#> [1] 40 40 60 60