Detect corners and edges in a given image.
Given image
- Compute the gradients of the image, both horizontal and vertical directions.
$X=(-1, 0, 1)\otimes I$ ,$Y=(-1, 0, 1)^T \otimes I$ - Compute the matrix
$M$ , where$A = G_{n\times n} \otimes X^2$ ,$B=G_{n\times n}\otimes Y^2$ ,$C=G_{n\times n}\otimes XY$ - Compute the response function
$R$ , where$R=AB-C^2-k(A+B)$ - Classify all points in
$R$ .
C. Harris and M. Stephens, “A Combined Corner and Edge Detector,” in Proceedings of the Alvey Vision Conference 1988, Manchester, 1988, pp. 23.1-23.6.