harmonise.linim: Make Pixel Images on a Network Compatible

View source: R/eval.linim.R

harmonise.linimR Documentation

Make Pixel Images on a Network Compatible

Description

Convert several pixel images to a common pixel raster.

Usage

## S3 method for class 'linim'
harmonise(...)

## S3 method for class 'linim'
harmonize(...)

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.

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.

Value

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

Author(s)

\spatstatAuthors

.

See Also

harmonise, harmonise.im, as.linim

Examples

   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)

spatstat.linnet documentation built on Jan. 31, 2026, 5:06 p.m.