filters.py 文件源码

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

项目:pypiv 作者: jr7 项目源码 文件源码
def replace_field(f, mask):
    """Interpolates positions in field according to mask with a 2D cubic interpolator"""
    lx, ly = f.shape
    x, y = np.mgrid[0:lx, 0:ly]
    C = CT_intp((x[~mask],y[~mask]),f[~mask], fill_value=0)
    return C(x, y)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号