Image parameters d, e, Vx and Vy are incorrectly scaled when loading a project file as template

Bug #1975825 reported by Janne
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Hugin
Fix Released
Undecided
Unassigned

Bug Description

1: load a set of images that are larger than the images specified in the template .pto file
2: image parameters d, e and Vx, Vy are incorrectly scaled for the new images

In this case, the original files were 4924 × 7378 pixels and the new files were 9824 × 14720 pixels in size. Hugin project file attached.

Revision history for this message
Janne (jannefoo) wrote :
summary: - Image parameters d, e, Vx and Vy are incorrectly scaled wehn loading a
+ Image parameters d, e, Vx and Vy are incorrectly scaled when loading a
project file as template
Revision history for this message
tmodes (tmodes) wrote :

You need to be more precise what is "incorrect scaled".
The parameter d, e, Vx and Vy are in pixel. (While other image parameters are relative.) When the image is bigger than in the template these parameters needs therefore scaled to take the new image size into account.
So if the new image is twice as big as the template image the image parameters needs scaled by factor 2.

Changed in hugin:
status: New → Incomplete
Revision history for this message
Janne (jannefoo) wrote :

Yes, the expected value would be approx double since the image dimensions are approx. doubled, but now Hugin scales them by one million(!) and that is way out of line.

Relevant line in the .pto:
d-8.64110014684784 e29.8343029352771

The values in Hugin when the .pto is applied as a template:
d: -8629293.28 e: 29793538.48

Same goes for Vx and Vy.

Revision history for this message
tmodes (tmodes) wrote :

Now I see it. It is related to linked image variables. For unlinked image variables it worked fine.
It should now be fixed in repository in changeset 490baa16aae6.

Changed in hugin:
milestone: none → 2022.0beta1
status: Incomplete → Fix Committed
tmodes (tmodes)
Changed in hugin:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.