[−][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 , the function cornerEigenValsAndVecs considers a blockSize blockSize neighborhood . It calculates the covariation matrix of derivatives over the neighborhood as:
where the derivatives are computed using the Sobel operator.
After that, it finds eigenvectors and eigenvalues of and stores them in the destination image as where
- are the non-sorted eigenvalues of
- are the eigenvectors corresponding to
- are the eigenvectors corresponding to
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