[][src]Function opencv::ximgproc::covariance_estimation

pub fn covariance_estimation(
    src: &dyn ToInputArray,
    dst: &mut dyn ToOutputArray,
    window_rows: i32,
    window_cols: i32
) -> Result<()>

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

Parameters

  • src: The source image. Input image must be of a complex type.
  • dst: The destination estimated covariance matrix. Output matrix will be size (windowRowswindowCols, windowRowswindowCols).
  • windowRows: The number of rows in the window.
  • windowCols: The number of cols in the window. 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.