Learn R Programming

spatstat.linnet (version 3.4-0)

harmonise.linim: Make Pixel Images on a Network Compatible

Description

Convert several pixel images to a common pixel raster.

Usage

# S3 method for linim
harmonise(...)

# S3 method for linim harmonize(...)

Value

A list, of length equal to the number of arguments ..., whose entries are pixel images on a network.

Arguments

...

Any number of pixel images on a network (objects of class "linim") or data which can be converted to pixel images on a network by as.linim.

Author

Adrian Baddeley Adrian.Baddeley@curtin.edu.au, Rolf Turner rolfturner@posteo.net and Ege Rubak rubak@math.aau.dk.

Details

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.

See Also

harmonise, harmonise.im, as.linim

Examples

Run this code
   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)

Run the code above in your browser using DataLab