def wall(mask_img, label_id):
"""
Function detecting wall position for a given cell-id (`label_id`) within a segmented image (`mask_img`).
"""
img = (mask_img == label_id)
dil = nd.binary_dilation(img)
contact = dil - img
return mask_img[contact]
spatial_image_analysis.py 文件源码
python
阅读 25
收藏 0
点赞 0
评论 0
评论列表
文章目录