Bläddra i källkod

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

This probably also speeds up the calculation.
pull/1015/head
Matthew Petroff 3 år sedan
förälder
incheckning
6fc7a23007
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. +1
    -1
      utils/multires/generate.py

+ 1
- 1
utils/multires/generate.py Visa fil

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


Laddar…
Avbryt
Spara