Created
September 3, 2017 21:10
-
-
Save ultramango/86f9d40f249ce15e41217ec65d293939 to your computer and use it in GitHub Desktop.
This file contains 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
#!/usr/bin/env bash | |
# Instantiate files from stdin, process and output to stdout | |
# Log from panorama processor will be written to panolog.log | |
filepre=`mktemp` | |
filein="${filepre}.jpg" | |
fileout=`basename ${filepre}_pano.jpg` | |
# Get image to temporary file | |
cat - > ${filein} | |
# Wrapper around panorama stitching | |
./gear360pano.cmd -m -a -o . ${filein} gear360video4k.pto > panolog.log 2>&1 | |
rm ${filein} | |
# And output the file | |
cat ${fileout} | |
rm ${fileout} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment