| MATLAB File Help: cv.cornerHarris | Index |
Harris corner detector
dst = cv.cornerHarris(src)
dst = cv.cornerHarris(src, 'OptionName', optionValue, ...)
single and the same size as src (single-channel).The function runs the Harris corner detector on the image. Similarly to
cv.cornerMinEigenVal and cv.cornerEigenValsAndVecs, for each pixel (x,y)
it calculates a 2 x 2 gradient covariance matrix M(x,y) over a
BlockSize x BlockSize neighborhood. Then, it computes the following
characteristic:
dst(x,y) = det(M(x,y)) - k * (trace(M(x,y)))^2
Corners in the image can be found as the local maxima of this response map.