13
13
# See the License for the specific language governing permissions and
14
14
# limitations under the License.
15
15
16
+ set -evo pipefail
17
+
16
18
IMAGE_1=$1
17
19
IMAGE_2=$2
18
20
# TODO fix this
19
21
NAME=$3
20
22
PROJECT=' ./stitching_demo/project.pto'
21
23
echo " $IMAGE_1 " - " $IMAGE_2 "
22
- pto_gen --projection=1 --fov=50 -o " $PROJECT " " $IMAGE_1 " " $IMAGE_2 "
24
+ pto_gen --projection=0 --fov=50 -o " $PROJECT " " $IMAGE_1 " " $IMAGE_2 "
23
25
pto_lensstack --new-lens i0,i1 -o " $PROJECT " " $PROJECT "
24
26
cd " ./stitching_demo" || exit
25
27
PROJECT=' project.pto'
26
- cpfind -o " $PROJECT " --multirow --celeste " $PROJECT "
27
- celeste_standalone -i project.pto -o project.pto
28
- cpclean -o " $PROJECT " " $PROJECT "
29
- linefind -o " $PROJECT " " $PROJECT "
28
+ # cpfind -o "$PROJECT" --multirow --celeste "$PROJECT"
29
+ # celeste_standalone -i project.pto -o project.pto
30
+ # cpclean -o "$PROJECT" "$PROJECT"
31
+ # linefind -o "$PROJECT" "$PROJECT"
30
32
# --opt=v,a,b,c,d,e,g,t,y,p,r,TrX,TrY,TrZ,Tpy,Tpp
31
- pto_var --anchor=1 --opt=" y0 ,p0,r0" -o " $PROJECT " " $PROJECT "
33
+ pto_var --anchor=1 --opt=Vb0 --set=y0=37.086 ,p0=-0.295 ,r0=3.013,y1=0,p1=0,r1=0,TrX=0,TrY=0,TrZ=0,Tpy=0,Tpp=0 -o " $PROJECT " " $PROJECT "
32
34
autooptimiser -n -o " $PROJECT " " $PROJECT "
33
- pano_modify --crop=600,2516,180,800 --canvas=2516x1042 --fov=100x29 -o " $PROJECT " " $PROJECT "
35
+ pano_modify --crop=878,3000,39,710 --canvas=3000x750 --fov=120x30 -o " $PROJECT " " $PROJECT "
34
36
35
- # vig_optimize -o "$PROJECT" "$PROJECT"
37
+ vig_optimize -o " $PROJECT " " $PROJECT "
36
38
hugin_executor --stitching --prefix=" $NAME " " $PROJECT "
0 commit comments