Explorar el Código

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

This probably also speeds up the calculation.
pull/1015/head
Matthew Petroff hace 3 años
padre
commit
6fc7a23007
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. +1
    -1
      utils/multires/generate.py

+ 1
- 1
utils/multires/generate.py Ver fichero

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


Cargando…
Cancelar
Guardar