[−][src]Function opencv::imgproc::corner_harris
pub fn corner_harris(
src: &dyn ToInputArray,
dst: &mut dyn ToOutputArray,
block_size: i32,
ksize: i32,
k: f64,
border_type: i32
) -> Result<()>
Harris corner detector.
The function runs the Harris corner detector on the image. Similarly to cornerMinEigenVal and cornerEigenValsAndVecs , for each pixel it calculates a gradient covariance matrix over a neighborhood. Then, it computes the following characteristic:
Corners in the image can be found as the local maxima of this response map.
Parameters
- src: Input single-channel 8-bit or floating-point image.
- dst: Image to store the Harris detector responses. It has the type CV_32FC1 and the same size as src .
- blockSize: Neighborhood size (see the details on #cornerEigenValsAndVecs ).
- ksize: Aperture parameter for the Sobel operator.
- k: Harris detector free parameter. See the formula above.
- borderType: Pixel extrapolation method. See #BorderTypes.
C++ default parameters
- border_type: BORDER_DEFAULT