drawLine: Draw Lines on an 'Image'

Description Usage Arguments Value Author(s) See Also Examples

View source: R/draw.R

Description

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

Usage

1
2
drawLine(image, pt1_x, pt1_y, pt2_x, pt2_y, color = "red",
  thickness = 1)

Arguments

image

An Image object.

pt1_x

A numeric value or vector representing the x coordinates of the first end of each line.

pt1_y

A numeric value or vector representing the y coordinates of the first end of each line.

pt2_x

A numeric value or vector representing the x coordinates of the second end of each line.

pt2_y

A numeric value or vector representing the y coordinates of the second end of each line.

color

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

thickness

A numeric value or vector representing the thickness in pixels of each line (default: 1).

Value

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

Author(s)

Simon Garnier, garnier@njit.edu

See Also

Image, drawArrow

Examples

1
# TODO

neuroconductor-devel/Rvision documentation built on May 16, 2021, 5:16 p.m.