| harmonise.linim | R Documentation |
Convert several pixel images to a common pixel raster.
## S3 method for class 'linim'
harmonise(...)
## S3 method for class 'linim'
harmonize(...)
... |
Any number of pixel images on a network
(objects of class |
This function makes any number of pixel images on a network compatible, by converting them all to a common pixel grid.
The command harmonise is generic. This is the
method for objects of class "linim".
At least one of the arguments ... must be a pixel image
on a network (object of class "linim") or a network
(class "linnet") so that the network is defined.
If several arguments contain network information then they must specify the same network.
Other arguments may be two-dimensional images
(class "im"), windows (class "owin"),
functions (function(x,y)) or numerical constants. These will be
converted to images using as.linim.
The return value is a list, with entries corresponding to the input
arguments, in which each entry is a pixel image on the same network.
If the arguments were named (name=value) then the return value
also carries these names.
A list, of length equal to the number of arguments ...,
whose entries are pixel images on a network.
.
harmonise,
harmonise.im,
as.linim
g <- linfun(function(x,y, seg, tp) { seg }, simplenet)
Image1 <- as.linim(g)
Distfun <- distfun(runiflpp(3, simplenet))
Image2 <- as.im(function(x,y) { x }, Window(simplenet))
harmonise(Image1, Distfun, Image2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.