📄 isobel.m
字号:
%ISOBEL Sobel edge detector%% is = ISOBEL(image)%% applies the Sobel edge detector, which is the norm of the vertical% and horizontal gradients. Tends to produce rather thick edges.%% Copyright (c) Peter Corke, 1999 Machine Vision Toolbox for Matlabfunction is = isobel(i) sh = [-1 0 1;-2 0 2;-1 0 1]; sv = [1 2 1; 0 0 0; -1 -2 -1]; ih = conv2(i, sh); iv = conv2(i, sv); is = sqrt(ih.^2 + iv.^2);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -