isobel.m
来自「这是一个基于MATLAB的机器视觉工具箱,里面用很多非常有价值的的程序」· M 代码 · 共 17 行
M
17 行
%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 + =
减小字号Ctrl + -
显示快捷键?