drawCircle: Draw Circles on an 'Image'

Description Usage Arguments Value Author(s) See Also Examples

View source: R/draw.R

Description

drawCirlc draws circles over an Image object. This operation is destructive: it changes irreversibly the Image object and cannot be undone.

Usage

1
drawCircle(image, x, y, radius, color = "red", thickness = 1)

Arguments

image

An Image object.

x

A numeric value or vector representing the x coordinates of the centers of each circle.

y

A numeric value or vector representing the y coordinates of the centers of each circle.

radius

A numeric value or vector representing the radii of each circle.

color

A value or vector of any kind of R color specification compatible with col2rgb representing the color of each circle's outline (default: "red").

thickness

A numeric value or vector representing the thickness in pixels of each circle's outline (default: 1). If negative, then a filled rectangle is drawn.

Value

This function does not return anything. It modifies image in place.

Author(s)

Simon Garnier, garnier@njit.edu

See Also

Image, drawEllipse

Examples

1
# TODO

neuroconductor-releases/Rvision documentation built on Nov. 10, 2020, 9:10 p.m.