[][src]Function opencv::imgproc::corner_eigen_vals_and_vecs

pub fn corner_eigen_vals_and_vecs(
    src: &dyn ToInputArray,
    dst: &mut dyn ToOutputArray,
    block_size: i32,
    ksize: i32,
    border_type: i32
) -> Result<()>

Calculates eigenvalues and eigenvectors of image blocks for corner detection.

For every pixel inline formula , the function cornerEigenValsAndVecs considers a blockSize inline formula blockSize neighborhood inline formula . It calculates the covariation matrix of derivatives over the neighborhood as:

block formula

where the derivatives are computed using the Sobel operator.

After that, it finds eigenvectors and eigenvalues of inline formula and stores them in the destination image as inline formula where

  • inline formula are the non-sorted eigenvalues of inline formula
  • inline formula are the eigenvectors corresponding to inline formula
  • inline formula are the eigenvectors corresponding to inline formula

The output of the function can be used for robust edge or corner detection.

Parameters

  • src: Input single-channel 8-bit or floating-point image.
  • dst: Image to store the results. It has the same size as src and the type CV_32FC(6) .
  • blockSize: Neighborhood size (see details below).
  • ksize: Aperture parameter for the Sobel operator.
  • borderType: Pixel extrapolation method. See #BorderTypes.

See also

cornerMinEigenVal, cornerHarris, preCornerDetect

C++ default parameters

  • border_type: BORDER_DEFAULT