We will explain here, how to carry out the Harris Corner Detector Algorithm in Matlab.
We will divide the task in 2 parts, one part will calculate the corner points of the image, and the other part, will draw small squares around those corner points with the purpose of having a way of displying them to the user.
The part of detecting the corner points of the image is the following:
We will now write the function that draws a small red square around the detected corner points.
We now present a image that was used for this purpose.
The original image is:
And the image with the corners detected is: