浏览代码

Resize image before SHT calculation to ensure even dimensions (fixes #1010).

This probably also speeds up the calculation.
pull/1015/head
Matthew Petroff 3 年前
父节点
当前提交
6fc7a23007
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      utils/multires/generate.py

+ 1
- 1
utils/multires/generate.py 查看文件

@@ -298,7 +298,7 @@ if haov < 360 or vaov < 180:
genPreview = False
if genPreview:
# Generate SHT-hash preview
shtHash = img2shtHash(np.array(Image.open(args.inputFile)))
shtHash = img2shtHash(np.array(Image.open(args.inputFile).resize((1024, 512))))
if args.thumbnailSize > 0:
# Create low-resolution base64-encoded equirectangular preview image
img = Image.open(args.inputFile)


正在加载...
取消
保存