powered by
pget returns the values of the pixels at the specified x and y coordinates in the image.
pget
pget(image, x, y)
An Image object.
Image
A vector of x locations (columns) in the image.
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.
# NOT RUN { balloon <- image(system.file("sample_img/balloon1.png", package = "Rvision")) pget(balloon, c(1, 100, 200), c(200, 100, 1)) # }
Run the code above in your browser using DataLab