imcov(X, Y=X)
"im"
."im"
) representing the
spatial covariance function of X
,
or the cross-covariance of X
and Y
."im"
) whose greyscale values
are values of the spatial covariance function. If the argument Y
is present, then imcov(X,Y)
computes the set cross-covariance function $C(u)$
defined as
$$C(v) = \int X(u)Y(u-v)\, {\rm d}u.$$
Note that imcov(X,Y)
is equivalent to
convolve.im(X,Y,reflectY=TRUE)
.
setcov
,
convolve.im
,
owin
,
as.owin
,
erosion
X <- as.im(square(1))
v <- imcov(X)
plot(v)
Run the code above in your browser using DataLab