as.function.im: Convert Pixel Image to Function of Coordinates
Description
Converts a pixel image to a function of the
$x$ and $y$ coordinates.
Usage
## S3 method for class 'im':
as.function(x, ...)
Arguments
x
Pixel image (object of class "im").
...
Ignored.
Value
A function in the Rlanguage, also belonging to the
class "funxy".
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.