File Exchange

image thumbnail

Harris corner detector

version 1.0.0.0 (32.8 KB) by SUMEET
Harris corner detector using Matlab

6 Downloads

Updated 28 Feb 2014

View License

In this submission a harris corner has been implemented.

Cite As

SUMEET (2020). Harris corner detector (https://www.mathworks.com/matlabcentral/fileexchange/45719-harris-corner-detector), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (6)

huaqin

Zichao Wu

Arfa Nawazish

what is Rmax?
please explain this, i didn't get it

Nalaka Gallage

Francisco Angel

My comment was:

The loop:
for i = 1:size(img,1)
for j = 1:size(img,2)
M = [Ix2(i,j) Ixy(i,j);Ixy(i,j) Iy2(i,j)];
R(i,j) = det(M)-0.01*(trace(M))^2;
if R(i,j) > Rmax
Rmax = R(i,j);
end;
end;
end

can be changed by:

R=(Ix2.*Iy2-Ixy.*Ixy)-0.01*(Ix2*Iy2).^2;
Rmax=max(max(R));

That said, the code works great.

Francisco Angel

My bad, it must be:

R=(Ix2.*Iy2-Ixy.*Ixy)-0.01*(Ix2*Iy2).^2;
Rmax=max(max(R));

MATLAB Release Compatibility
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux

harris_corner/