get_motion_salient_boxes.py 文件源码

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

项目:Deep360Pilot-optical-flow 作者: yenchenlin 项目源码 文件源码
def motion_saliency(flow_mag, n):
    prior = flow_mag / np.max(flow_mag)
    filt = np.ones((n, n))/n/n

    likeli = cv2.filter2D(flow_mag.astype(np.float32), -1, filt)
    likeli = (likeli - likeli.min()) / (likeli.max() - likeli.min())

    return likeli * prior
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号