pano_modify: How to set projection parameters

Asked by Andreas Ulmer

Certain output projections have an additional projection parameters, e.g. Triplanar has one parameter called alpha in Hugin UI.

http://hugin.sourceforge.net/docs/nona/nona.txt labels it
# P"100 12" Parameters for tuning projection, number of parameters depends on projection

and it is stored in the p line of the pto

e.g. the P"120" in the line below.
p f18 w1024 h1024 v360 E3 R0 P"120" n"TIFF_m c:LZW r:CROP"

I'm trying to set this P value to a pto file using pano_modify (or another cmd line tool).

I did not find how to do this in the pano_modify man page, neither did I find a hint on the cpp
https://sourceforge.net/p/hugin/hugin/ci/default/tree/src/tools/pano_modify.cpp#l48

* is this probably just not doced?
* or not implemented?
* or can it be done with a different tool?

Question information

Language:
English Edit question
Status:
Answered
For:
Hugin Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
tmodes (tmodes) said :
#1

This was not yet coded/implemented (because there was no request for such a feature).

I implemented a new switch in the default branch of our repository: pano_modify --projection-parameter=120 project.pto to set the projection parameters.

Revision history for this message
Andreas Ulmer (pwrslv) said :
#2

Great! thanks a lot @tmodes.

Will there be a new build soon? Full Hugin build, or maybe just the tools?
Not sure I have the skills to build this myself.

Revision history for this message
tmodes (tmodes) said :
#3

For Ubuntu there are the nightlies: https://launchpad.net/~hugin/+archive/ubuntu/nightly/+packages
These contain already the new version.

For other OS there are no current public development versions (at least to my knowledge).

Can you help with this problem?

Provide an answer of your own, or ask Andreas Ulmer for more information if necessary.

To post a message you must log in.