as.data.frame.im

0th

Percentile

Convert Pixel Image to Data Frame

Convert a pixel image to a data frame

Keywords
methods, spatial
Usage
## S3 method for class 'im':
as.data.frame(x, ...)
Arguments
x
A pixel image (object of class "im").
...
Further arguments passed to as.data.frame.default to determine the row names and other features.
Details

This function takes the pixel image x and returns a data frame with three columns containing the pixel coordinates and the pixel values.

Value

  • A data frame

Aliases
  • as.data.frame.im
Examples
# artificial image
   Z <- setcov(square(1))

   Y <- as.data.frame(Z)

   head(Y)
Documentation reproduced from package spatstat, version 1.29-0, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.