http://blog.sina.com.cn/s/blog_45eaa01a0102wrwp.html
http://www.vlfeat.org/overview/imdisttf.html
http://cn.mathworks.com/help/images/distance-transform.html matlab距离变换
距离变换提供了图像中点分离的度量或度量。的bwdist函数计算每个像素间的距离,设置为OFF(0)和最近的非零像素的二进制图像
gua'jia
Calculates the distance to the closest zero pixel for each pixel of the source image.
-
C++:
void
distanceTransform
(InputArray
src, OutputArray
dst, int
distanceType, int
maskSize, int
dstType=CV_32F
)
-
C++:
void
distanceTransform
(InputArray
src, OutputArray
dst, OutputArray
labels, int
distanceType, int
maskSize, int
labelType=DIST_LABEL_CCOMP
)
-
Python:
cv2.