Prev: complex numbers?
Next: gauspuls and ode
From: Najmus Sadat on 4 Sep 2009 00:32 For last couple of days, I have been trying to code for Harris-Laplace method. I got some code for harris corner from this site. But I am getting trouble due to some confusion. Can any1 give me the code of that? or at least some guideline without the reference of paper? First confusion comes from integration scale and differentiation scale. How to apply them??is the code below is correct? sigma = 1.5; % derivative masks s_D = 0.7*sigma; x = -round(3*s_D):round(3*s_D); dx=sqrt(2).*x .* exp(-x.*x/(s_D*s_D)) ./ (s_D*s_D*s_D*sqrt(pi)); dy = dx'; % image derivatives Ix = conv2(im, dx, 'same'); Iy = conv2(im, dy, 'same'); % sum of the Auto-correlation matrix s_I = sigma; g = fspecial('gaussian',max(1,fix(6*s_I+1)), s_I); Ix2 = conv2(Ix.^2, g, 'same'); % Smoothed squared image derivatives Iy2 = conv2(Iy.^2, g, 'same'); Ixy = conv2(Ix.*Iy, g, 'same');
|
Pages: 1 Prev: complex numbers? Next: gauspuls and ode |