OpenCV  3.4.5
Open Source Computer Vision
Creating your own corner detector

Goal

In this tutorial you will learn how to:

  • Use the OpenCV function cv::cornerEigenValsAndVecs to find the eigenvalues and eigenvectors to determine if a pixel is a corner.
  • Use the OpenCV function cv::cornerMinEigenVal to find the minimum eigenvalues for corner detection.
  • Implement our own version of the Harris detector as well as the Shi-Tomasi detector, by using the two functions above.

Theory

Code

Explanation

Result

My_Harris_corner_detector_Result.jpg
My_Shi_Tomasi_corner_detector_Result.jpg