Learn R Programming

spc4sts (version 0.2.1)

spaCov: Spatial Weighted Covariance

Description

Computes the spatial weighted covariance of a specified pair of pixels in a given image.

Usage

spaCov(img, i1, i2, j1, j2, K)

Arguments

img

the given image

i1

row index of the first pixel in the pair.

i2

column index of the first pixel in the pair.

j1

row index of the second pixel in the pair.

j2

column index of the second pixel in the pair.

K

the weighted matrix.

Value

The spatial weighted covariance of a specified pair of pixels in a given image.

References

Bui, A.T., and Apley., D.W. (2017) A Monitoring and Diagnostic Approach for Stochastic Textured Surfaces", Technometrics (in press).

See Also

kerMat, bp