Non-maximum suppression in OpenCV

17,966

There is a working implementation with full coding for both Harris and the Shi-Tomasi corner detectors here. The 4th parameter in the corner detector function is a CvPoint2D32f* structure. The function returns the calculated local maxima i.e. the corners into this structure array. Simply looping through the array and receiving each point as a CvPoint will get you the corner positions.

(all this is there in the code)

Hope this helps.

Share:
17,966
Chris Arriola
Author by

Chris Arriola

Working on the developer relations team for Android helping developers migrate to Jetpack Compose.

Updated on July 18, 2022

Comments

  • Chris Arriola
    Chris Arriola almost 2 years

    I applied a harris corner detection using openCV which gave me a response map for the potential corners. The documentation states that corners can be found as the local maxima of this response map - does anyone know how this can be done?

    Thank you.