Created
May 5, 2022 04:06
-
-
Save typebrook/75e28c3ffcba00ec7b09b07a6c7d83bf to your computer and use it in GitHub Desktop.
Panorama solution for insta360 images (deprecated)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.ONESHELL: | |
test: xmap.pgm ymap.pgm | |
ffmpeg -y -i test.jpg -i xmap.pgm -i ymap.pgm -filter_complex remap out.jpg | |
exiftool -UsePanoramaViewer=TRUE -ProjectionType="equirectangular" out.jpg | |
which SimplePanoramaViewer 2>/dev/null && SimplePanoramaViewer out.jpg | |
pgm: dualfisheye2equirectangular | |
cd $< | |
gcc -o projection projection.c -lm | |
./projection \ | |
-x ../xmap.pgm \ | |
-y ../ymap.pgm \ | |
-h 3040 \ | |
-w 6080 \ | |
-r 3040 \ | |
-c 6080 \ | |
-b $${CROP:-160} \ | |
-m $${MODE:-thetas} | |
dualfisheye2equirectangular: | |
git clone --depth=1 https://github.com/raboof/dualfisheye2equirectangular | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment