Should anyone be interested, this is a script developed for stitching 
(mosaic) images in a folder prior to tidying up rotation, fine-tuning CPs, 
adjusting FoV and stitching in Hugin. 

#!/bin/bash
pto_gen -p 0 -f 40.7 -c 200,5560,133,3707 -o project.pto *.tif
cpfind --multirow --fullscale --sieve1width 12 --sieve1height 8 
--sieve2width 4 --sieve2height 4 --sieve2size 1 -o project_cp.pto 
project.pto
pto_var --set=r=90 --opt=TrX,TrY -o project_XY.pto project_cp.pto
autooptimiser -n -o project_XY.pto project_XY.pto
pto_var --opt=y,y0,p,p0,TrZ -o project_ypZ.pto project_XY.pto
autooptimiser -n -o project_ypZ.pto project_ypZ.pto
pto_var --opt=y,y0,p,p0,TrX,TrY,TrZ -o project_ypXYZ.pto project_ypZ.pto
autooptimiser -n -o project_ypXYZ.pto project_ypXYZ.pto
cpclean --fast -o project_clean.pto project_cp.pto
pto_var --opt=y,y0,p,p0,TrX,TrY,TrZ -o project_ypXYZ.pto project_ypXYZ.pto
autooptimiser -n -o project_ypXYZ.pto project_ypXYZ.pto
pano_modify --projection=0 --fov=AUTO -o finished.pto project_ypXYZ.pto

On Friday, 29 April 2022 at 13:05:52 UTC+1 Michael Perry wrote:

> Thank you, that works simply and perfectly
>
>
> On Thursday, 28 April 2022 at 16:30:21 UTC+1 T. Modes wrote:
>
>> michae...@mac.com schrieb am Donnerstag, 28. April 2022 um 12:23:49 
>> UTC+2:
>>
>>> pto_var: can anyone tell me whether there is a way to specify, for 
>>> example, optimising yaw of all images including the anchor without having 
>>> to specify each image?
>>>
>>> Thus, some sort of:
>>> --opt=yALL
>>> rather than
>>>  --opt=y0,y1,y2,y3,y4…
>>>
>>
>> Assuming anchor is first image (image index 0):
>> pto_var --opt=y,y0
>>
>>

-- 
A list of frequently asked questions is available at: 
http://wiki.panotools.org/Hugin_FAQ
--- 
You received this message because you are subscribed to the Google Groups 
"hugin and other free panoramic software" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to hugin-ptx+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/hugin-ptx/86d945cd-fa6a-4119-bfaa-80d43451cd9dn%40googlegroups.com.
  • Re: [hugin-ptx... Bruno Postle
    • Re: [hugi... 'Michael Perry' via hugin and other free panoramic software
      • Re: [... Bruno Postle
        • R... 'Michael Perry' via hugin and other free panoramic software
        • R... 'Michael Perry' via hugin and other free panoramic software
        • R... Bruno Postle
        • R... 'Michael Perry' via hugin and other free panoramic software
        • R... 'Michael Perry' via hugin and other free panoramic software
        • R... T. Modes
        • R... 'Michael Perry' via hugin and other free panoramic software
        • R... 'Michael Perry' via hugin and other free panoramic software

Reply via email to