## S3 method for class 'psp':
density(x, sigma, \dots, edge=TRUE)
"psp"
) to be smoothed.as.mask
which determine
the resolution of the resulting image."im"
).density
. A kernel estimate of the intensity of the line segment pattern
is computed. The result is
the convolution of the isotropic Gaussian kernel, of
standard deviation sigma
, with the line segments.
Computation is performed analytically.
If edge=TRUE
this result is adjusted for edge effects
by dividing it by the convolution of the same Gaussian kernel
with the observation window.
psp.object
,
im.object
,
density
L <- psp(runif(20),runif(20),runif(20),runif(20), window=owin())
D <- density(L, sigma=0.03)
plot(D, main="density(L)")
plot(L, add=TRUE)
Run the code above in your browser using DataLab