Forcing the center of a panorama

130 views
Skip to first unread message

Amir Shenhav

unread,
May 2, 2021, 2:34:13 AM5/2/21
to PTGui Support
Hi,

I am building a 360 degrees panorama from images taken with DJI Mavic 2 Pro and PTGui does not handle the Yaw data correctly. I tried to manually set the yaw parameters and rerun the optimizer but nothing changed. I know that my first image is heading north and I would like to set it at the center of the panorama. In all my attempts the center of the panorama is set to a different image.

Thanks,

Amir

John Houghton

unread,
May 2, 2021, 3:07:22 AM5/2/21
to PTGui Support
If you set the yaw value of an image to 0 and make that image the anchor (either by selecting that image in Simple mode, or unchecking the image's yaw parameter in Advanced mode), optimizing should not change its yaw position unless you have horizontal/vertical control points and are levelling in a second pass.  You could try the option of including those points in a single pass (available in the optimizer's Advanced mode).  

But if all else fails, you can use the Numerical Transform tool to shift the entire panorama round to position the first image at yaw=0.  What you do is go to the Image Parameters tab and copy the current yaw value with ctrl/c and paste into the yaw adjustment field of the Numerical Transform tool.  Then click Apply.

John

Erik Krause

unread,
May 2, 2021, 6:42:17 AM5/2/21
to pt...@googlegroups.com
Am 02.05.2021 um 08:34 schrieb Amir Shenhav:

> I know that my first image is heading north and I would like to set
> it at the center of the panorama.

In very old versions PTGui did exactly that by default. Then Joost
changed it to the current behavior, which positions the first image to
the left of the panorama (assuming a left-to-right shooting pattern for
partial panoramas I suppose).

I always disliked that and requested an option to revert to the original
behavior then, but apparently it was not important enough, may be
because the method John described also works.

However, I'd be grateful for a setting to have the first image in the
center, at least for full 360° panoramas.

--
Erik Krause
http://www.erik-krause.de

PTGui Support

unread,
May 2, 2021, 11:40:48 AM5/2/21
to pt...@googlegroups.com
Hi Amir,

For DJI drones, PTGui uses the yaw/pitch/roll embedded by the drone in
the image metadata to initialize the image parameters.

If this is not what you want, it can be disabled:

Project Settings -> Miscellaneous -> Position images automatically using
metadata from the camera's orientation sensor. You would need to do this
prior to loading the images. Press Advanced in the side bar to reveal
the Project Settings tab.

Kind regards,

Joost Nieuwenhuijse
www.ptgui.com
> --
> 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 on the web visit
> https://groups.google.com/d/msgid/ptgui/b22820c6-be72-4b56-9ea0-f7a9b5036ab6n%40googlegroups.com
> <https://groups.google.com/d/msgid/ptgui/b22820c6-be72-4b56-9ea0-f7a9b5036ab6n%40googlegroups.com?utm_medium=email&utm_source=footer>.

PTGui Support

unread,
May 2, 2021, 11:41:40 AM5/2/21
to pt...@googlegroups.com
Hi Erik,

It still works like that. For 360 degree panoramas, image 1 will be at
the center after running Align Images. I just tried.

For non-360 degree panoramas, the panorama will be centered. I think
this is the right thing to do as well.

Amir's problem is unrelated, it's because PTGui is using the metadata
from his images.

Kind regards,

Joost Nieuwenhuijse
www.ptgui.com

Amir Shenhav

unread,
May 2, 2021, 12:01:59 PM5/2/21
to PTGui Support
Thank you all for the quick replies. I'll follow your suggestions.

Thanks,
Amir

Erik Krause

unread,
May 2, 2021, 2:14:53 PM5/2/21
to pt...@googlegroups.com
Am 02.05.2021 um 17:41 schrieb PTGui Support:

> It still works like that. For 360 degree panoramas, image 1 will be at
> the center after running Align Images. I just tried.

Sorry, I should not post in a hurry when I'm distracted by some
demanding other job...

> For non-360 degree panoramas, the panorama will be centered. I think
> this is the right thing to do as well.

Of course!
Reply all
Reply to author
Forward
0 new messages