/usr/share/hugin/data/expressions.ini is in hugin-data 2018.0.0+dfsg-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 | [Linear\ (left\ to\ right\,\ 20\ %\ Overlap)]
Expression=# this is a comment\n# update yaw of all images\ny=(i-imax/2)*hfov*(1-0.2)\n# set pitch and roll to 0\np=0\nr=0
[Fisheye\ (4\+Z\+N)]
Expression=# fisheye pano: 4 images in middle (pitch 0) + zenit + nadir\ny=i<4?90*i:0\np=(i==4)?90:(i==5?-90:0)\nr=0
[Fisheye\ (4\+Z\+N)-2]
Expression=# fisheye pano: 4 images in middle (pitch 0) + zenit + nadir\n# middle row\ny0=0, p0=0\ny1=90, p1=0\ny2=180, p2=0\ny3=270, p3=0\n# zenit\ny4=0, p4=90\n# nadir image\ny5=0, p5=-90\n# for all images roll=0\nr=0\n
[Multi-row\,\ 2\ rows\,\ zick zack]
Expression=# example for multi-row arrangement: 2 rows, with 20 % overlap\n# left to right, top to bottom, zick zack\nnrRows=2\noverlap=20\n# calculate some constants for further calculations\n# calculate number of images per row\nimagesPerRow=ceil((imax+1)/nrRows)\n# calculate vfov\nvfov=deg(atan(2*height/width*tan(rad(hfov/2))))\n# set yaw\ny=(i%(imagesPerRow)-(imagesPerRow-1)/2)*hfov*(1-overlap/100)\n# set pitch\np=-(floor(i/imagesPerRow)-(nrRows-1)/2)*vfov*(1-overlap/100)\n# set roll to 0\nr=0
[Multi-row\,\ 2\ rows\,\ snake]
Expression=# example for multi-row arrangement: 2 rows, with 20 % overlap\n# left to right, bottom to top , snake\nnrRows=2\noverlap=20\n# calculate some constants for further calculations\n# calculate number of images per row\nimagesPerRow=ceil((imax+1)/nrRows)\n# calculate vfov\nvfov=deg(atan(2*height/width*tan(rad(hfov/2))))\n# set yaw\ny=(((floor(i/imagesPerRow)%2==1)?(imagesPerRow-i%imagesPerRow-1):i%imagesPerRow)%(imagesPerRow)-(imagesPerRow-1)/2)*hfov*(1-overlap/100)\n# set pitch\np=(floor(i/imagesPerRow)-(nrRows-1)/2)*vfov*(1-overlap/100)\n# set roll to 0\nr=0
|