eucdist2.m.svn-base
来自「fast marching method」· SVN-BASE 代码 · 共 19 行
SVN-BASE
19 行
function varargout = eucdist2(varargin)
%EUCDIST2 Compute 2-D Euclidean distance transform.
% D = EUCDIST2(BW) computes the Euclidean distance transform on the input
% binary image BW, which must be 2-D. Specifically, it computes the
% distance to the nearest nonzero-valued pixel.
%
% [D,L] = EUCDIST2(BW) returns a linear index array L representing a
% nearest-neighbor map. L(r,c) is the linear index of the nonzero-valued
% element of BW closest to (r,c).
%
% See also BWDIST.
% Copyright 1993-2003 The MathWorks, Inc.
% $Revision: 1.6.4.2 $ $Date: 2003/08/01 18:11:05 $
%#mex
error('Images:eucdist2:missingMEXFile', 'Missing MEX-file: %s', mfilename);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?