Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

harmonise.owin

Make Windows Compatible


Description

Convert several windows to a common pixel raster.

Usage

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

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

Arguments

...

Any number of windows (objects of class "owin") or data which can be converted to windows by as.owin.

Details

This function makes any number of windows compatible, by converting them all to a common pixel grid.

This only has an effect if one of the windows is a binary mask. If all the windows are rectangular or polygonal, they are returned unchanged.

The command harmonise is generic. This is the method for objects of class "owin".

Each argument must be a window (object of class "owin"), or data that can be converted to a window by as.owin.

The common pixel grid is determined by inspecting all the windows in the argument list, computing the bounding box of all the windows, then finding the binary mask with the finest spatial resolution, and extending its pixel grid to cover the bounding box.

The return value is a list with entries corresponding to the input arguments. If the arguments were named (name=value) then the return value also carries these names.

If you just want to determine the appropriate pixel resolution, without converting the windows, use commonGrid.

Value

A list of windows, of length equal to the number of arguments .... The list belongs to the class "solist".

Author(s)

and Rolf Turner r.turner@auckland.ac.nz

See Also

Examples

harmonise(X=letterR,
             Y=grow.rectangle(Frame(letterR), 0.2),
             Z=as.mask(letterR, eps=0.1),
             V=as.mask(letterR, eps=0.07))

spatstat.geom

Geometrical Functionality of the 'spatstat' Family

v2.1-0
GPL (>= 2)
Authors
Adrian Baddeley [aut, cre], Rolf Turner [aut], Ege Rubak [aut], Tilman Davies [ctb], Ute Hahn [ctb], Abdollah Jalilian [ctb], Sebastian Meyer [ctb], Suman Rakshit [ctb], Dominic Schuhmacher [ctb], Rasmus Waagepetersen [ctb]
Initial release
2021-04-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.