Harris corner detection, MATLAB source code
2016-08-23
0 0 0
no vote
Other
Earn points
HARRIS. TXT
clear;ori_im = imread(\'clip_image001.gif\'); Read% image% FX = [5; 8; 5]; % Gaussian function to first order differential, x direction (the Harris corner detection algorithm for improved)
fx = [-2 -1 0 1 2]; % X-gradient operator (for the Harris corner detection algorithm)
Ix = filter2(fx,ori_im); % X direction filtering
% fy = [5 8 5;0 0-0;--5]; % Gaussian derivative, y direction (the Harris corner detection algorithm for improved)
fy = [-2;-1;0;1;2]; % Y-gradient operator (for the Harris corner detection algorithm)
Iy = filter2(fy,ori_im); % Y direction filtering
Ix2 = Ix.^2;
Iy2 = Iy.^2;
Ixy = Ix.*Iy;
clear Ix;
clear Iy;h= fspecial(\'gaussian\',[7 7],2); Have a Gaussian window function 7*7%, sigma=2Ix2 = filter2 (h,Ix2);
Iy2 = filter2(h,Iy2);
Ixy = filter2(h,Ixy);height = size(ori_im,1);
width =
clear;ori_im = imread(\'clip_image001.gif\'); Read% image% FX = [5; 8; 5]; % Gaussian function to first order differential, x direction (the Harris corner detection algorithm for improved)
fx = [-2 -1 0 1 2]; % X-gradient operator (for the Harris corner detection algorithm)
Ix = filter2(fx,ori_im); % X direction filtering
% fy = [5 8 5;0 0-0;--5]; % Gaussian derivative, y direction (the Harris corner detection algorithm for improved)
fy = [-2;-1;0;1;2]; % Y-gradient operator (for the Harris corner detection algorithm)
Iy = filter2(fy,ori_im); % Y direction filtering
Ix2 = Ix.^2;
Iy2 = Iy.^2;
Ixy = Ix.*Iy;
clear Ix;
clear Iy;h= fspecial(\'gaussian\',[7 7],2); Have a Gaussian window function 7*7%, sigma=2Ix2 = filter2 (h,Ix2);
Iy2 = filter2(h,Iy2);
Ixy = filter2(h,Ixy);height = size(ori_im,1);
width =
c
matlab
检测
源代码
Harris
Related Source Codes
PClite
0
0
no vote
generic embeded FTP Client
0
0
no vote
UDP Test Demo
0
0
no vote
TMS320F28335 DSP transmits data to EEPROM through
0
0
no vote
TMS320F28335 CAN communication source code
0
0
no vote
No comment