powered by
Convert a pixel image to a data frame
# S3 method for im as.data.frame(x, ...)
A data frame.
This function takes the pixel image x and returns a data frame with three columns containing the pixel coordinates and the pixel values.
x
The data frame entries are automatically sorted in increasing order of the x coordinate (and in increasing order of y within x).
y
# artificial image Z <- setcov(square(1)) Y <- as.data.frame(Z) head(Y)
Run the code above in your browser using DataLab