def is_boarder(patch, sigma):
"""
this function evaluates the canny filter ovet the passed patch
returning through boolean
wheather or not the image can be catalogued as boarder retrieving the
boolean value of the center
:param patch: the image to filter
:param sigma: sigma value for the canny filter
:return: boolean value
"""
bool_patch = canny( patch, sigma=sigma )
return bool_patch[patch.shape[0] / 2][patch.shape[1] / 2]
patch_extractor_edges.py 文件源码
python
阅读 25
收藏 0
点赞 0
评论 0
评论列表
文章目录