-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathlatlong2dome.bat
46 lines (35 loc) · 1.61 KB
/
latlong2dome.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
@ECHO OFF
@title latlong2dome v1.6 - immersive transformations
echo latlong2dome v1.6 - 2016-08-18
echo script by Andrew Hazelden
echo ----------------------------------------------------------------------
echo latlong2dome converts a latitude/longitude image sequence into dome
echo format using the moving panorama program by Helmut Dersch and FFMPEG.
echo ----------------------------------------------------------------------
echo Check out the PTStitcher wiki for the script syntax:
echo http://wiki.panotools.org/PTStitcher
rem Note: mpremap accepts piped .pnm image streams
REM All image sequences start on frame number 0 (eg. 0.jpg)
REM Use the exact image name for a single frame (eg. image.0009.jpg)
REM Use %%d.jpg for an unpadded image sequence (eg: 9.jpg)
REM Use %%.4d.jpg for a padded image sequence (eg: 0009.jpg)
REM output image folder
@set outputFolder=C:\dome2rect\output
REM Process a single frame for testing:
REM @set ptscript=latlong2rect
@set ptscript=latlong2dome
@set input=input\latlong.jpg
@set output=%outputFolder%\sequence.%%d.jpg
REM Process a 4 digit padded image sequence:
REM @set ptscript=latlong2rect
REM @set input=input\zosma.%%.4d.jpg
REM @set output=output\sequence.%%d.jpg
REM Create the output folder if it doesn't exist
IF exist %outputFolder% ( echo The %outputFolder% folder exists ) ELSE ( mkdir %outputFolder% && echo The %outputFolder% folder has been created)
REM Move to the base dome2rect folder
cd C:\dome2rect\
REM Run the remapping program
bin\mpremap.exe -f scripts\%ptscript% -o %output% %input%
REM echo Loading frames into viewer...
PAUSE
REM C:\dome2rect\review.bat %output%