Method for converting from the fromFunction class of objects to the fromXYZ class of objects. Clearly this requires the user to specify a grid onto which to compute the discretised verion.
# S3 method for fromFunction
as.fromXYZ(X, xyt, M = 100, N = 100, ...)
an object of class fromFunction
and objects of class stppp
number of cells in x direction
number of cells in y direction
additional arguments
object of class im containing normalised intensities
as.im.fromXYZ, as.im.fromSPDF, as.im.fromFunction, as.fromXYZ