4

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.

Chris Arriola
  • 1,636
  • 3
  • 17
  • 23

1 Answers1

5

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.

AruniRC
  • 5,070
  • 7
  • 43
  • 73
  • 4
    Ended up writing my own implementation - pretty simple, just use an nxn sliding window and keep track of the local maximum. – Chris Arriola Mar 30 '12 at 07:47