OpenCV  4.1.1-pre
Open Source Computer Vision
Looking for a C++ dev who knows OpenCV?
I'm looking for work. Hire me!
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