- Signed distance function
In
mathematics and applications, the signed distance function of a set "S" in ametric space determines how close a given point "x" is to the boundary of "S", with that function having positive values at points "x" inside "S", it decreases in value as "x" approaches the boundary of "S" where the signed distance function is zero, and it takes negative values outside of "S".Formally, if ("X", "d") is a metric space, the "signed distance function" "f" is defined by
:
where
:
(the ∂ symbol denotes the set boundary, while 'inf' is the
infimum ).If "S" is a subset of the
Euclidean space R"n" withpiecewise smooth boundary, the signed distance function is differentiablealmost everywhere , and itsgradient satisfies theeikonal equation :
Algorithms for calculating the signed distance function include the efficient
fast marching method and the more general but slowerlevel set method .Signed distance functions are applied for example in
computer vision .ee also
*
Level set method
*Eikonal equation References
* J.A. Sethian, "Level set methods and fast marching methods". Cambridge University Press (1999). ISBN 0-521-64557-3.
Wikimedia Foundation. 2010.