feature_detection.py 文件源码

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

项目:pybot 作者: spillai 项目源码 文件源码
def finite_and_within_bounds(xys, shape): 
    H, W = shape[:2]
    if not len(xys): 
        return np.array([])
    return np.bitwise_and(np.isfinite(xys).all(axis=1), 
                          reduce(lambda x,y: np.bitwise_and(x,y), [xys[:,0] >= 0, xys[:,0] < W, 
                                                                   xys[:,1] >= 0, xys[:,1] < H]))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号