Euclidean distance transform
distform(M, fg)
Returns the distance transform of image
M
using foreground gray value
fg
.
Arguments:
M
is an image matrix.
fg
is a real number.