Evaluates any expression involving one or more pixel images on a linear network, and returns a pixel image on the same linear network.
An expression in the R language,
involving the names of objects of class
Optional. The environment in which to evaluate the expression.
Logical. Whether to resolve inconsistencies between the pixel grids.
Logical. Whether to issue a warning if the pixel grids were inconsistent.
This function a wrapper to make it easier to perform
pixel-by-pixel calculations. It is one of several functions
whose names begin with
eval which work on objects of
different types. This particular function is designed to work with
objects of class
"linim" which represent
pixel images on a linear network.
X is a pixel image on a linear network (object of
will add 3 to the value of every pixel in
X, and return
the resulting pixel image on the same linear network.
Y are two pixel images on the same
linear network, with compatible pixel dimensions. Then
eval.linim(X + Y) will add the corresponding pixel values in
Y, and return the resulting pixel image
on the same linear network.
expr can be any expression in the R language involving
(a) the names of pixel images, (b) scalar
constants, and (c) functions which are vectorised.
See the Examples.
eval.linim determines which of the variable names
in the expression
expr refer to pixel images. Each such name
is replaced by a matrix containing the pixel values. The expression is
then evaluated. The result should be a matrix; it is taken as
the matrix of pixel values.
expr must be vectorised.
There must be at least one linear pixel image in the expression.
All images must have compatible dimensions.
harmonize=FALSE, images that are incompatible will cause an error.
harmonize=TRUE, images that have incompatible dimensions
will be resampled so that they are compatible; if
a warning will be issued.
An image object of class
1 2 3 4 5 6 7 8 9 10 11 12
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.