ROI area
Usage
at_roi_area(
roi,
level = 0L,
units = c("px", "physical"),
call = rlang::caller_env()
)Arguments
- roi
An annot_roi.
- level
Integer pyramid level at which to express the area. Default
0.- units
Either
"px"(pixels squared, the default) or"physical". Physical units require apixel_sizeattribute on the ROI.- call
The calling environment, for error reporting.
Examples
at_roi_area(at_roi_rect(0, 0, 10, 5, label = "a"))
#> [1] 50