make_wkt.py 文件源码

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

项目:kaggle-satellite-imagery-feature-detection 作者: toshi-k 项目源码 文件源码
def gen_mask_image(multi, img, W, H, Xmax, Ymin):

    mask = np.zeros(img.shape, dtype='float')

    if type(multi) == Polygon:
        # Polygon
        mask = fill_polygon(multi, mask, W, H, Xmax, Ymin)
    else:
        # Multi polygon
        for poly in multi:
            mask = fill_polygon(poly, mask, W, H, Xmax, Ymin)

    return mask
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号