pset
sets the values of the pixels at the specified x
and y coordinates in the image.
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 inx
and the same number of rows as the number of channels inimage
.
Author
Simon Garnier, garnier@njit.edu
Examples
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
pset(balloon, 1:100, 200:101, "red")