mpetroff / pannellum

Pannellum is a lightweight, free, and open source panorama viewer for the web.
https://pannellum.org/
MIT License
4.3k stars 728 forks source link

How to stitch multiresolution panorama? #1007

Open lavAzza2 opened 3 years ago

lavAzza2 commented 3 years ago

I lost my panoramas, but I have thr multiresolution (by generate.py) panoramas. How can I stitch them back?

mpetroff commented 3 years ago

You could take the highest-resolution set of tiles and assemble each cube face into a single image. With the six cube faces, you could then use Hugin to reproject them back into an equirectangular image.

luishcq commented 3 years ago

Once I lost lots of panoramas, due to a HDD failure (and a not updated backup!) but I could recover from the tiles from my site. Based on generate.py, I managed to create my solution, recover.py, which is attached. Run it, with arguments name_of_tiles_folder, size of tiles, and cube resolution, as in python3 recover.py PSSavcda -s 512 -c 4928 The cube and tile sizes you can find in the config.json, in the tiles' folder. This program you create the cube faces and you can assemble the equirectangular with hugin or, easier, with cubic2erect (from https://metacpan.org/dist/Panotools-Script)

Give it a try. It works! :) And keep the backups updated!

Luís Henrique

Em qui., 15 de jul. de 2021 às 14:23, Matthew Petroff < @.***> escreveu:

You could take the highest-resolution set of tiles and assemble each cube face into a single image. With the six cube faces, you could then use Hugin http://hugin.sourceforge.net/ to reproject them back into an equirectangular image.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mpetroff/pannellum/issues/1007#issuecomment-880878876, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACPYPLKKIQONCM6VC2X6YS3TX4KQ5ANCNFSM5ANZBKZQ .

-- -- Luis Henrique Camargo Quiroz http://luishcq.br.tripod.com - http://www.christusrex.org/www2/cantgreg http://panoramaslh.net/

lavAzza2 commented 3 years ago

You could take the highest-resolution set of tiles and assemble each cube face into a single image. With the six cube faces, you could then use Hugin to reproject them back into an equirectangular image.

Ok. Thank you.

lavAzza2 commented 3 years ago

Give it a try. It works! :) And keep the backups updated!

Wow, great! :) Thank you very much, I will try your script. But where I can get recovery.py script?