Click or drag to resize

CvXImgProcCovarianceEstimation Method

Computes the estimated covariance matrix of an image using the sliding window forumlation.

Namespace:  OpenCvSharp.XImgProc
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static void CovarianceEstimation(
	InputArray src,
	OutputArray dst,
	int windowRows,
	int windowCols
)

Parameters

src
Type: OpenCvSharpInputArray
The source image. Input image must be of a complex type.
dst
Type: OpenCvSharpOutputArray
The destination estimated covariance matrix. Output matrix will be size (windowRows*windowCols, windowRows*windowCols).
windowRows
Type: SystemInt32
The number of rows in the window.
windowCols
Type: SystemInt32
The number of cols in the window.
Remarks
The window size parameters control the accuracy of the estimation. The sliding window moves over the entire image from the top-left corner to the bottom right corner.Each location of the window represents a sample. If the window is the size of the image, then this gives the exact covariance matrix. For all other cases, the sizes of the window will impact the number of samples and the number of elements in the estimated covariance matrix.
See Also