patch_extractor_edges.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:nn-segmentation-for-lar 作者: cvdlab 项目源码 文件源码
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]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号