中文说明:Canny 边缘检测算法 matlab 代码 这部分给出了算法的 Canny 边缘检测器。输出是相同的图中所示的六个子图形︰ 子图形 1︰ 初始"莉娜" 子
English Description:
Canny edge detector algorithm matlab codes This part gives the algorithm of Canny edge detector. The outputs are six subfigures shown in the same figure: Subfigure 1: The initial "lena" Subfigure 2: Edge detection along X-axis direction Subfigure 3: Edge detection along Y-axis direction Subfigure 4: The Norm of the image gradient Subfigure 5: The Norm of the gradient after thresholding Subfigure 6: The edges detected by thinning The matlab codes: %%%%%%%%%%%%% The main.m file %%%%%%%%%%%%%%% clear; % The algorithm parameters: % 1. Parameters of edge detecting filters: % X-axis direction filter: Nx1=10;Sigmax1=1;Nx2=10;Sigmax2=1;Theta1=pi/2; % Y-axis direction filter: Ny1=10;Sigmay1=1;Ny2=10;Sigmay2=1;Theta2=0; % 2. The thresholding parameter alfa: