Buffer an ROI
Usage
at_roi_buffer(roi, dist, call = rlang::caller_env())Arguments
- roi
An annot_roi.
- dist
Numeric buffer distance in pixels (may be negative to erode).
- call
The calling environment, for error reporting.
Value
An annot_roi with the buffered geometry.
Examples
at_roi_buffer(at_roi_point(10, 10, label = "a"), dist = 5)
#> <annot_roi> a (POLYGON)
#> id: "roi_000000054" | level: 0 | source: manual
#> bbox: [5, 5] - [15, 15]