pget | R Documentation |
pget
returns the values of the pixels at the specified x
and y coordinates in the image.
pget(image, x, y)
image |
An |
x |
A vector of x locations (columns) in the image. |
y |
A vector of y locations (rows) in the image. |
A matrix. The number of columns of the matrix depends on the number of channels in the image. Each row corresponds to a pair of x/y coordinates.
Simon Garnier, garnier@njit.edu
Image
balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision"))
pget(balloon, c(1, 100, 200), c(200, 100, 1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.