as.im.function method from package
spatstat (Baddeley and Turner, 2005).
The integral under the surface is then approximated as the
sum over (pixel area * f(pixel midpoint)).polyCub.midpoint(polyregion, f, ..., eps = NULL, dimyx = NULL,
plot = FALSE)"owin" via a corresponding
as.owin-method.
Note that this includes polygons of the classes "gpc.poly" and
"", because polyCub defines
methods as.owin.gpc.poly and
as.owin.SpatialPolygons, respectively.f.as.mask.as.mask.f over
polyregion..polyCub.iso,
polyCub.iso; polyCub.SV;
polyCub.exact.Gauss; polyCub