Browse Source

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

This probably also speeds up the calculation.
pull/1015/head
Matthew Petroff 3 years ago
parent
commit
6fc7a23007
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      utils/multires/generate.py

+ 1
- 1
utils/multires/generate.py View File

@@ -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)


Loading…
Cancel
Save