Skip to contents

The circle is approximated by a regular polygon of n_seg segments.

Usage

at_roi_circle(
  x,
  y,
  r,
  label,
  level = 0L,
  n_seg = 64L,
  ...,
  call = rlang::caller_env()
)

Arguments

x, y

Numeric centre coordinates in image pixels.

r

Positive numeric radius in pixels.

label

Single string class label.

level

Integer pyramid level the coordinates refer to. Default 0.

n_seg

Integer number of polygon segments approximating the circle.

...

Additional named attributes stored on the ROI. The reserved names author, source, and id set those fields; all others become user attributes.

call

The calling environment, for error reporting.

Value

An annot_roi with POLYGON geometry.

Examples

r <- at_roi_circle(50, 50, r = 10, label = "nucleus")