as.function.im

0th

Percentile

Convert Pixel Image to Function of Coordinates

Converts a pixel image to a function of the \(x\) and \(y\) coordinates.

Keywords
manip, spatial
Usage
# S3 method for im
as.function(x, ...)
Arguments
x

Pixel image (object of class "im").

Ignored.

Details

This command converts a pixel image (object of class "im") to a function(x,y) where the arguments x and y are (vectors of) spatial coordinates. This function returns the pixel values at the specified locations.

Value

A function in the R language, also belonging to the class "funxy".

See Also

[.im

Aliases
  • as.function.im
Examples
# NOT RUN {
  d <- density(cells)
  f <- as.function(d)
  f(0.1, 0.3)
# }
Documentation reproduced from package spatstat, version 1.57-1, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.