PANDORE Version 6 | GREYC-IMAGE |
pharris is a corner detector. Corners are T, L or Y junctions or points with strong texture variation. Corners correspond to double discontinuities of the intensity function caused by discontinuities in the reflectance or the depth functions.
The principle of the algorithm is to compute the covariance matrix C(x,y):
| S(Ix.Ix) S(Ix.Iy) | C=| | | S(Ix.Iy) S(Iy.Iy) |
where Ix and Iy are image gradient components and S(x) is the sum symbol. The eigenvalues represent the major and minor axis of the elliptical approximation of the gradient vector distribution. If the smaller eigenvalue of the matrix is positive, it is considered as a corner.
To avoid to compute the eigenvalue, Harris proposes to compute the response function R(x,y) for each pixel:
R=Ixx*Iyy-Ixy*Ixy - kappa * (Ixx+Iyy) * (Ixx+Iyy)
and than to choose the interest point as local maxima of function R(x,y).
kappa is a tunable parameter which determines how 'edge-phobic' the algorithm is. The value has to be determined empirically. In the literature values in the range 0.04 - 0.15 have been reported as feasible.
The size of research area for the local maxima is determined from the sigma parameter (size=6*sigma).
The result image is a float image that encodes for each pixel the strength of the response.
Returns SUCCESS or FAILURE.
Extracts corners from image tangram.pan and superimposes corners on the initial image.
pharris 2 0.04 tangram.pan a.pan pbinarization 1e4 1e30 a.pan b.pan padd b.pan tangram.pan out.pan
Détection de points d'intérêt selon l'algorithme de Harris-Stephens.
Author: Régis Clouard