Skip to contents

pset sets the values of the pixels at the specified x and y coordinates in the image.

Usage

pset(image, x, y, color)

Arguments

image

An Image object.

x

A vector of x locations (columns) in the image.

y

A vector of y locations (rows) in the image.

color

A value or vector of any kind of R color specification compatible with col2bgr. It can also be a matrix with the same number of columns as the number of elements in x and the same number of rows as the number of channels in image.

Value

This functions returns nothing and changes the values of the pixels in image in place.

See also

Author

Simon Garnier, garnier@njit.edu

Examples

balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
pset(balloon, 1:100, 200:101, "red")