Determine A Common Spatial Domain And Pixel Resolution
Determine a common spatial domain and pixel resolution for several spatial objects such as images, masks, windows and point patterns.
commonGrid(...)
... |
Any number of pixel images (objects of class |
This function determines a common spatial resolution and spatial domain for several spatial objects.
The arguments ...
may be pixel images,
binary masks, or other spatial objects acceptable to as.mask
.
The common pixel grid is determined by inspecting all the pixel images and binary masks in the argument list, finding the pixel grid with the highest spatial resolution, and extending this pixel grid to cover the bounding box of all the spatial objects.
A binary mask (object of class "owin"
and type "mask"
).
Adrian Baddeley Adrian.Baddeley@curtin.edu.au and Rolf Turner r.turner@auckland.ac.nz
if(require(spatstat.core)) { A <- setcov(square(1)) G <- density(runifpoint(42), dimyx=16) H <- commonGrid(A, letterR, G) newR <- as.mask(letterR, xy=H) newG <- as.im(G, W=H) }
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.