prepare-images.py 文件源码

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

项目:kaggle-dstl-satellite-imagery-feature-detection 作者: alno 项目源码 文件源码
def compute_filters(data):
    filter_data = np.zeros((1, data.shape[1], data.shape[2]), dtype=np.float32)
    filter_data[0] = sobel(np.clip(data[0] / 600.0, 0, 1)) + sobel(np.clip(data[1] / 600.0, 0, 1)) + sobel(np.clip(data[2] / 600.0, 0, 1))

    return filter_data
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号