PRTools contents

PRTools manual

im_harris

IM_HARRIS

Harris corner detector

     X = IM_HARRIS(A,N,SIGMA)

Input
 A Datafile or dataset with images
 N Number of desired Harris points per image (default 100)
 SIGMA Smoothing size (default 3)

Output
 X Dataset with a [N,3] array with for every image  x, y and strength per Harris point.

Description

We use Kosevi's [1] software to find the corner points according to  Harris [2]. On top of the Kosevi Harris point detector we run

If you use this software for publications, please refer to [1] and [2].

Reference(s)

[1] P. D. Kovesi, MATLAB and Octave Functions for Computer Vision and Image Processing, School of Computer Science & Software Engineering,  The University of Western Australia. Available from: . [2] C. Harris and M. Stephens, A combined corner and edge detector, Proc. 4th Alvey Vision Conf., 1988, pp. 147-151.

Example(s)

 delfigs
 a = kimia;                  % take simple shapesas example
 b = gendat(a,25)*im_gray;   % just 25 images at random
 c = data2im(b);             % convert dataset to images for display
 x = im_harris(b,15,1);      % compute maximum 15 Harris points at scale 1
 y = data2im(x);             % unpack dataset with results 
 for j=1:25                  % show results one by one
     figure(j); imagesc(c(:,:,1,j)); colormap gray; hold on
     scatter(y(:,1,1,j),y(:,2,1,j),'r*');
 end
 showfigs

PRTools contents

PRTools manual