as.function.im | R Documentation |
Converts a pixel image to a function of the x and y coordinates.
## S3 method for class 'im' as.function(x, ...)
x |
Pixel image (object of class |
... |
Ignored. |
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.
A function in the R language, also belonging to the
class "funxy"
.
and \ege
[.im
d <- setcov(square(1)) f <- as.function(d) f(0.1, 0.3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.