Computes the unnormalised spatial covariance function of a pixel image.
imcov(X, Y=X)
A pixel image (object of class "im"
.
Optional. Another pixel image.
A pixel image (an object of class "im"
) representing the
spatial covariance function of X
,
or the cross-covariance of X
and Y
.
The (uncentred, unnormalised)
spatial covariance function of a pixel image
This command computes a discretised approximation to
the spatial covariance function, using the Fast Fourier Transform.
The return value is
another pixel image (object of class "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
Note that imcov(X,Y)
is equivalent to
convolve.im(X,Y,reflectY=TRUE)
.
# NOT RUN {
X <- as.im(square(1))
v <- imcov(X)
plot(v)
# }
Run the code above in your browser using DataLab