stereo_utils.py 文件源码

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

项目:pybot 作者: spillai 项目源码 文件源码
def disparity_interpolate(disp, fill_zeros=True): 
    # Determine valid positive disparity pixels
    xyd = valid_pixels(disp, disp > 0)

    # Nearest neighbor interpolator
    nn = LinearNDInterpolator(xyd[:,:2], xyd[:,2])

    # Interpolate all pixels
    xyd = valid_pixels(disp, np.ones(shape=disp.shape, dtype=np.bool))
    return nn(xyd[:,:2]).reshape(disp.shape[:2])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号