Displaying 1 result from an estimated 1 matches for "xgrey".
Did you mean:
grey
2005 Aug 04
3
how to read individual values from a pixmap object
...through RGDAL and placing in a
pixmap object.
As an example use the logo.jpg file that comes with the RGDAL package:
#Read the file
logo <- system.file("pictures/logo.jpg", package="rgdal")[1]
x <- new("GDALReadOnlyDataset", logo)
#Create the pixmap object
xGrey <- getPixmapGDAL(x)
Now I would like to read individual pixel values and store them in a
separate vector. However I have not found a straight-forward way to do this.
I thought that something like:
x <- xGrey[1,1]
would return the pixel value, but it seems to return a pixmap object wit...