def bwdist(a):
"""
Intermediary function. 'a' has only True/False vals,
so we convert them into 0/1 values - in reverse.
True is 0, False is 1, distance_transform_edt wants it that way.
"""
return nd.distance_transform_edt(a == 0)
# Displays the image with curve superimposed
active_contour.py 文件源码
python
阅读 24
收藏 0
点赞 0
评论 0
评论列表
文章目录