未验证 提交 67a10adc 编写于 作者: 走神的阿圆's avatar 走神的阿圆 提交者: GitHub

fix version diff for function `pad`

上级 86a8e550
......@@ -28,7 +28,9 @@ def padding_image(img, height, width):
width_before = math.floor((width - width_old) / 2)
width_after = width - width_old - width_before
return np.pad(img, ((height_before, height_after), (width_before, width_after), (0, 0)))
return np.pad(array=img,
pad_width=((height_before, height_after), (width_before, width_after), (0, 0)),
mode="constant")
def merge_images(imgs, dataformats, scale=1.0, rows=-1):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册