Code covered by the BSD License  

Highlights from
Toolbox Fast Marching

image thumbnail

Toolbox Fast Marching


Gabriel Peyre


24 Oct 2004 (Updated )

A toolbox for the computation of the Fast Marching algorithm in 2D and 3D.

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: $  $Date: 2003/08/01 18:11:05 $


error('Images:eucdist2:missingMEXFile', 'Missing MEX-file: %s', mfilename);

Contact us