harmonise.im

0th

Percentile

Make Pixel Images Compatible

Convert several pixel images to a common pixel raster.

Keywords
manip, spatial
Usage
harmonise.im(...)
harmonize.im(...)
Arguments
...
Any number of pixel images (objects of class "im") or data which can be converted to pixel images by as.im.
Details

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

At least one of the arguments ... must be a pixel image. Some arguments may be windows (objects of class "owin"), functions (function(x,y)) or numerical constants. These will be converted to images using as.im. The common pixel grid is determined by inspecting all the pixel images in the argument list, computing the bounding box of all the images, then finding the image with the highest 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 images, use commonGrid.

Value

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

commonGrid, compatible.im, as.im

• harmonise.im
• harmonize.im
Examples
A <- setcov(square(1))
B <- function(x,y) { x }
G <- density(runifpoint(42))
harmonise.im(X=A, Y=B, Z=G)
Documentation reproduced from package spatstat, version 1.34-1, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.