patchmatch_code.py 文件源码

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

项目:patchmatch 作者: samyblusseau 项目源码 文件源码
def initialize_heap(offsets, weights):
    all_heaps = []
    [n, k] = offsets.shape
    for i in range(0,n):
        h = []
        for j in range(0, k):
            heapq.heappush(h, (weights[i, j], offsets[i, j]))
        all_heaps.append(h)
    return all_heaps
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号