Convert Pixel Image to Data Frame
Convert a pixel image to a data frame
## S3 method for class 'im' as.data.frame(x, ...)
x |
A pixel image (object of class |
... |
Further arguments passed to
|
This function takes the pixel image x
and returns a data frame with three columns
containing the pixel coordinates and the pixel values.
The data frame entries are automatically sorted in increasing order of
the x
coordinate (and in increasing order of y
within
x
).
A data frame.
Adrian Baddeley Adrian.Baddeley@curtin.edu.au, Rolf Turner r.turner@auckland.ac.nz and Ege Rubak rubak@math.aau.dk.
# artificial image Z <- setcov(square(1)) Y <- as.data.frame(Z) head(Y)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.