data.py 文件源码

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

项目:tefla 作者: litan 项目源码 文件源码
def _build_centering_transform(image_shape, target_shape):
    cols, rows = image_shape
    tcols, trows = target_shape
    shift_x = (cols - tcols) / 2.0
    shift_y = (rows - trows) / 2.0
    return skimage.transform.SimilarityTransform(translation=(shift_x, shift_y))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号