
Last chance! 50% off unlimited learning
Sale ends in
Converts a pixel image to a function of the
# S3 method for im
as.function(x, ...)
Pixel image (object of class "im"
).
Ignored.
A function in the R language, also belonging to the
class "funxy"
.
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.
# NOT RUN {
d <- density(cells)
f <- as.function(d)
f(0.1, 0.3)
# }
Run the code above in your browser using DataLab