Hi Neil,
PTGui uses the panotools lens correction model. See
https://wiki.panotools.org/Lens_correction_model
The crop and shift parameters are stored as shift and scale invariant
percentages. For more information and sample code see 6.43:
https://ptgui.com/faq#6_43
Kind regards,
Joost Nieuwenhuijse
www.ptgui.com
On 12/10/25 02:55, neil sackdoor wrote:
> hi
>
> I'm trying recreate a stitched panoramic image in After Effects and
> hoping there is a way to reproduce the lens distortion calculated by PTGui.
> I'm really hoping someone might be able to elucidate what exactly the a,
> b and c values are, and how I might translate them to something After
> Effects will understand.
> The project i'm working on is using images shot on an Canon R52 with an
> RF 15-35mm lens at 15mm
>
> My options for lens correction in After Effects are:
>
> 1. The basic 'optics compensation' effect does what I assume is simple
> barrel/pin-cushion correction. It uses a single value called FOV
> (range 0-90˚) to adjust the amount of distortion. It also has a lens
> centre [X,Y] for offseting the optical centre.
> As a reference, for an eyeball correction on my images I would use
> an FOV value of about 27˚ inverse (simple barrel correction)
> 2. the next option is an effect called FT-Lens distortion. It uses
> values for 'Distortion' (range -1 to 1) and also "Cubic Distortion"
> (range -1 to 1) which does seem to be able to do the classic
> moustache distortion.
> In my case I'd use apx values distortion: -0.03 and cubic: = 0.01
> (
https://aescripts.com/ft-lens-distortion/?
> srsltid=AfmBOopxxdYdRUlNdDhmx34ojTteM0UnBFqmVzCDX7I3QwkVXy1wgkMh)
> 3. the most sophisticated option is 'Syntheyes Advanced Distortion'
> --
> You received this message because you are subscribed to the Google
> Groups "PTGui Support" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
ptgui+un...@googlegroups.com
> <mailto:
ptgui+un...@googlegroups.com>.
> To view this discussion visit
https://groups.google.com/d/msgid/
> ptgui/173cb55d-6ffa-4d85-87f4-5e5dc67714b1n%
40googlegroups.com <https://
>
groups.google.com/d/msgid/
> ptgui/173cb55d-6ffa-4d85-87f4-5e5dc67714b1n%
40googlegroups.com?
> utm_medium=email&utm_source=footer>.