Re: [hugin-ptx] Re: Scale panorama FOV

2020-04-02 Thread David W. Jones
In general, it probably is best to calibrate your specific lens in Hugin, 
particularly if it's one you use a lot for panorama work.

Of course, getting your clients to do that may be another matter entirely.

On April 2, 2020 12:20:41 AM HST, Klaus Foehl  wrote:
>You need not be so pessimistic. Typical alignment deviations are in the
>3 to 5 pixels ballpark at the edge, and can go up to 15 pixels in the 
>corner for a particular "bad" lens (meaning the hugin abc model cannot 
>cope with that lens), all using the barrel distortion parameter b. Now 
>do the maths for an image 4000 pixels wide with 40 degrees field of 
>view. 10 pixels still give you 1/10 degrees.
>
>Another issue are EXIF-provided lens parameters. If hugin takes them as
>gospel (view not optimised) in the way it does, one may be wrong in 
>focal length by a few percent. The way to calibrate this is to take a 
>360-degrees panoramic and let hugin determine the parameter v, and 
>possibly the full set of parameters for your individual camera lens.
>
>On 30.03.20 15:37, 'ChameleonScales' via hugin and other free panoramic
>
>software wrote:
>> Ok. It's fine if it doesn't get that precise. I can work with around
>1 degree if the software doesn't allow for less.
>>
>> The point is that having a scaling feature would allow me to
>fine-tune the scale based on what I know.
>>
>> Since I superimpose my panorama to imported terrain and map data in
>Blender, I can see when a building or hill should be slightly more to
>the left or right on the photo, then adjust the FOV in Blender using
>the slider I made, and I know this FOV to be correct. I just don't know
>an easy enough way to give this back to Hugin so it exports a corrected
>version.
>>
>>
>> ‐‐‐ Original Message ‐‐‐
>> On Monday, March 30, 2020 10:35 AM, Klaus Foehl
> wrote:
>>
>>> As you are talking sub-degree precision, there is an inherent
>limitation
>>> in the hugin lens model or abc parametrisation. From the
>Brown-Conradi
>>> model, a mathematically sound distortion description, hugin
>implements
>>> only one of the non-trivial parameters, which is parameter b.
>>>
>>> Parameters a and c are not in Brown-Conrady, for polar coordinates
>they
>>> are mathematically not sound, and in practice their use does not
>lead to
>>> the quantitative alignment improvement an extra good parameter would
>>> provide.
>>>
>>> To add to it, I have seen situations where the use of a and c
>parameters
>>> have made things observably bad. If parameters b and the offset
>>> parameters d and e provide you with enough precision, then fine,
>then
>>> hugin is a really good tool for you.
>>>
>>> On 30.03.20 09:37, 'ChameleonScales' via hugin and other free
>panoramic
>>> software wrote:
>>>
 Unless I'm missing some geometrical effect, it doesn't seem to me
>that you would have to re-optimize it given that the transformation
>should precisely preserve the panorama's sewing just like in the
>animation above, so as I understand it, control point distances should
>only change proportionally to the scale you apply. But correct me if
>I'm wrong.
 As for getting it right in the first place, in my use case, I have
>to superimpose a panorama to its virtual 3D environment in Blender and
>I need sub-degree precision on the HFOV.
 I don't think any software could make such a precise guess with the
>photos I get from my clients.
>>> --




-- 
David W. Jones
gnomeno...@gmail.com
wandering the landscape of god
http://dancingtreefrog.com

Sent from my Android device with F/LOSS K-9 Mail.

-- 
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/B6AE1F4B-BACF-430C-9281-88D9A429BF62%40gmail.com.


Re: [hugin-ptx] Re: Scale panorama FOV

2020-04-02 Thread Klaus Foehl
You need not be so pessimistic. Typical alignment deviations are in the 
3 to 5 pixels ballpark at the edge, and can go up to 15 pixels in the 
corner for a particular "bad" lens (meaning the hugin abc model cannot 
cope with that lens), all using the barrel distortion parameter b. Now 
do the maths for an image 4000 pixels wide with 40 degrees field of 
view. 10 pixels still give you 1/10 degrees.


Another issue are EXIF-provided lens parameters. If hugin takes them as 
gospel (view not optimised) in the way it does, one may be wrong in 
focal length by a few percent. The way to calibrate this is to take a 
360-degrees panoramic and let hugin determine the parameter v, and 
possibly the full set of parameters for your individual camera lens.


On 30.03.20 15:37, 'ChameleonScales' via hugin and other free panoramic 
software wrote:

Ok. It's fine if it doesn't get that precise. I can work with around 1 degree 
if the software doesn't allow for less.

The point is that having a scaling feature would allow me to fine-tune the 
scale based on what I know.

Since I superimpose my panorama to imported terrain and map data in Blender, I 
can see when a building or hill should be slightly more to the left or right on 
the photo, then adjust the FOV in Blender using the slider I made, and I know 
this FOV to be correct. I just don't know an easy enough way to give this back 
to Hugin so it exports a corrected version.


‐‐‐ Original Message ‐‐‐
On Monday, March 30, 2020 10:35 AM, Klaus Foehl  wrote:


As you are talking sub-degree precision, there is an inherent limitation
in the hugin lens model or abc parametrisation. From the Brown-Conradi
model, a mathematically sound distortion description, hugin implements
only one of the non-trivial parameters, which is parameter b.

Parameters a and c are not in Brown-Conrady, for polar coordinates they
are mathematically not sound, and in practice their use does not lead to
the quantitative alignment improvement an extra good parameter would
provide.

To add to it, I have seen situations where the use of a and c parameters
have made things observably bad. If parameters b and the offset
parameters d and e provide you with enough precision, then fine, then
hugin is a really good tool for you.

On 30.03.20 09:37, 'ChameleonScales' via hugin and other free panoramic
software wrote:


Unless I'm missing some geometrical effect, it doesn't seem to me that you 
would have to re-optimize it given that the transformation should precisely 
preserve the panorama's sewing just like in the animation above, so as I 
understand it, control point distances should only change proportionally to the 
scale you apply. But correct me if I'm wrong.
As for getting it right in the first place, in my use case, I have to 
superimpose a panorama to its virtual 3D environment in Blender and I need 
sub-degree precision on the HFOV.
I don't think any software could make such a precise guess with the photos I 
get from my clients.

--

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/282135e3-7846-f179-5382-410c95b68c4e%40gmail.com.




--
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/445e41d9-4ead-1722-025c-3df0538fb19f%40gmail.com.


Re: [hugin-ptx] Re: Scale panorama FOV

2020-03-31 Thread 'ChameleonScales' via hugin and other free panoramic software
Again, that's what I ended up doing (cf my 3rd post)

But in fact it's not even the best existing solution for me. Right now the 
quickest and easiest solution is to re-render the corrected panorama from 
Blender.

However, it adds a pipe in my pipeline. Which means if I realize I have to 
modify the .pto file, I will have to feed it through Blender again.
A scale feature in Hugin would make the process more dynamic.

But anyway, I need some time to look up how this distortion would be done in 
Hugin, because it might be impossible to use the existing distortion 
parameters, so it would have to be a new kind that would sit on top of all the 
others, which would understandably require a much higher demand that my request 
alone, so I hope my math intuition is wrong.

-- 
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/xIde3pgxTcJJsdP2tGABX8HCAWFWBZ5ecwmOzvWJqkju24ZbTgBmG5Wi986az5EAmYALteOv1vTmwz-89elFEYwPPe3JIstEZa5TAlzYwIs%3D%40protonmail.com.


Re: [hugin-ptx] Re: Scale panorama FOV

2020-03-31 Thread Bruno Postle



On 31 March 2020 09:15:33 BST, 'ChameleonScales' wrote:
>Nevertheless, if this required a new kind of distortion, do you think
>it could be considered for a new feature ?

Have you tried optimising the angle of view of the input photos? This is 
something that Hugin does really well, it is very unlikely to conclude that a 
180° panorama is actually 90°, mainly because it is very difficult to fit a 
180° panorama into the very different curvature of a 90° space and vice-versa - 
this is why just scaling positions and angle of view of the input photos isn't 
enough to scale the final panorama.

-- 
Bruno

-- 
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/8273E826-FAD9-41A0-A0DD-C11689112063%40postle.net.


Re: [hugin-ptx] Re: Scale panorama FOV

2020-03-31 Thread 'ChameleonScales' via hugin and other free panoramic software
Nevertheless, if this required a new kind of distortion, do you think it could 
be considered for a new feature ?

-- 
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/FsQUn04xSM1titS3l1KOccTGdYptPb0ZcrzrC-FqLI_XKHarWw2eFhcvk25N6KXBZtzJYxA6vHClipVEhM_5eCZaE1gnyMS3ieutVCjqQAc%3D%40protonmail.com.


Re: [hugin-ptx] Re: Scale panorama FOV

2020-03-30 Thread 'ChameleonScales' via hugin and other free panoramic software
Sorry, maybe my phrasing was misleading. I didn't mean the panorama should 
scale linearly on the reprojection.

What I meant is that, yes, each photo has to be distorted, but in such a way 
that the overlapping pixels between 2 photos don't drift apart, resulting in 
the same effect as my animated gif from before shows.

However, I'm just realizing that it requires a kind of distortion that may not 
be implemented in Hugin. I would have to work out the math from my Blender file.
Need some time to do this.

-- 
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/h9c4cP4IJzlZVKZAYFEbHp8EcxX8ov3To-CWV4MpzKLiXsbykkFaWOuTTEZxp4hySBWmOhPb2-7ij3VINNzGszBQ3ozdCXoPwSaw4WZCgBI%3D%40protonmail.com.


Re: [hugin-ptx] Re: Scale panorama FOV

2020-03-30 Thread 'ChameleonScales' via hugin and other free panoramic software
Ok. It's fine if it doesn't get that precise. I can work with around 1 degree 
if the software doesn't allow for less.

The point is that having a scaling feature would allow me to fine-tune the 
scale based on what I know.

Since I superimpose my panorama to imported terrain and map data in Blender, I 
can see when a building or hill should be slightly more to the left or right on 
the photo, then adjust the FOV in Blender using the slider I made, and I know 
this FOV to be correct. I just don't know an easy enough way to give this back 
to Hugin so it exports a corrected version.


‐‐‐ Original Message ‐‐‐
On Monday, March 30, 2020 10:35 AM, Klaus Foehl  wrote:

> As you are talking sub-degree precision, there is an inherent limitation
> in the hugin lens model or abc parametrisation. From the Brown-Conradi
> model, a mathematically sound distortion description, hugin implements
> only one of the non-trivial parameters, which is parameter b.
>
> Parameters a and c are not in Brown-Conrady, for polar coordinates they
> are mathematically not sound, and in practice their use does not lead to
> the quantitative alignment improvement an extra good parameter would
> provide.
>
> To add to it, I have seen situations where the use of a and c parameters
> have made things observably bad. If parameters b and the offset
> parameters d and e provide you with enough precision, then fine, then
> hugin is a really good tool for you.
>
> On 30.03.20 09:37, 'ChameleonScales' via hugin and other free panoramic
> software wrote:
>
> > Unless I'm missing some geometrical effect, it doesn't seem to me that you 
> > would have to re-optimize it given that the transformation should precisely 
> > preserve the panorama's sewing just like in the animation above, so as I 
> > understand it, control point distances should only change proportionally to 
> > the scale you apply. But correct me if I'm wrong.
> > As for getting it right in the first place, in my use case, I have to 
> > superimpose a panorama to its virtual 3D environment in Blender and I need 
> > sub-degree precision on the HFOV.
> > I don't think any software could make such a precise guess with the photos 
> > I get from my clients.
>
> --
>
> 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/282135e3-7846-f179-5382-410c95b68c4e%40gmail.com.


-- 
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/VE_6_vDJMtyLJq74rQF8ZK7erhCrRRBeUVumngyC5JGiAo69BAj-_aiGTB5XNuZYLHSLrqtXx3edsVgLAWYdMdATLwaWzxorAwP-GvEGtTg%3D%40protonmail.com.


Re: [hugin-ptx] Re: Scale panorama FOV

2020-03-30 Thread Klaus Foehl
As you are talking sub-degree precision, there is an inherent limitation 
in the hugin lens model or abc parametrisation. From the Brown-Conradi 
model, a mathematically sound distortion description, hugin implements 
only one of the non-trivial parameters, which is parameter b.


Parameters a and c are not in Brown-Conrady, for polar coordinates they 
are mathematically not sound, and in practice their use does not lead to 
the quantitative alignment improvement an extra good parameter would 
provide.


To add to it, I have seen situations where the use of a and c parameters 
have made things observably bad. If parameters b and the offset 
parameters d and e provide you with enough precision, then fine, then 
hugin is a really good tool for you.


On 30.03.20 09:37, 'ChameleonScales' via hugin and other free panoramic 
software wrote:

Unless I'm missing some geometrical effect, it doesn't seem to me that you 
would have to re-optimize it given that the transformation should precisely 
preserve the panorama's sewing just like in the animation above, so as I 
understand it, control point distances should only change proportionally to the 
scale you apply. But correct me if I'm wrong.

As for getting it right in the first place, in my use case, I have to 
superimpose a panorama to its virtual 3D environment in Blender and I need 
sub-degree precision on the HFOV.
I don't think any software could make such a precise guess with the photos I 
get from my clients.



--
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/282135e3-7846-f179-5382-410c95b68c4e%40gmail.com.


Re: [hugin-ptx] Re: Scale panorama FOV

2020-03-30 Thread 'ChameleonScales' via hugin and other free panoramic software
Unless I'm missing some geometrical effect, it doesn't seem to me that you 
would have to re-optimize it given that the transformation should precisely 
preserve the panorama's sewing just like in the animation above, so as I 
understand it, control point distances should only change proportionally to the 
scale you apply. But correct me if I'm wrong.

As for getting it right in the first place, in my use case, I have to 
superimpose a panorama to its virtual 3D environment in Blender and I need 
sub-degree precision on the HFOV.
I don't think any software could make such a precise guess with the photos I 
get from my clients.

-- 
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/AHvsZyI5Wx27kf1WFPPIjhqVWtT-sVUZXGLhengFjT3dQ2bgr4CKPNF3aZsyAZFwPGoHi-yyWgfX8MH88iCp6wCh0IZIdMk2_OCwN9U2eeM%3D%40protonmail.com.


Re: [hugin-ptx] Re: Scale panorama FOV

2020-03-30 Thread Bruno Postle



On 30 March 2020 01:01:29 BST, 'ChameleonScales' wrote:
>
>The apply button would change y,p,r and distortions values on all
>photos to preserve the aspect of the entire panorama just like in the
>animated gif above.
>Each of the 3 scaling modes would have its own apply button and the
>tooltip could be the same for all 3 of them.
>Does that seem feasible and the right way to approach this to you ?

The problem is that, although you could estimate all the new photo positions 
after scaling their angle of view, you still need to rerun the optimiser to get 
a good alignment. If you are rerunning the optimiser anyway, why estimate the 
new positions first?

This is all trying to fix a problem that shouldn't exist in the first place, 
Hugin should just get the angle of view calculation right - and if it isn't, 
then this is what should be fixed.

-- 
Bruno

-- 
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/610C80F2-2EF3-4D8D-9852-D321C4424A74%40postle.net.


Re: [hugin-ptx] Re: Scale panorama FOV

2020-03-28 Thread Bruno Postle



On 28 March 2020 18:10:00 GMT, 'ChameleonScales' wrote:
>Allow me to clarify.
>
>This is an animation of the effect I want to achieve (made in Blender):
>
>[resize_pano.gif]
>
>The reason I need to do this is that if the HFOV is too small, then the
>reprojection (in my case cylindrical) will not be correct.

To get this effect you need to increase the angle of view of the input photos, 
but there is no easy way to calculate the change in spacing needed to keep them 
aligned. So you will need to reoptimise positions at least, and probably barrel 
distortion too.

Note that I haven't often seen this problem, a wide panorama with lots of 
control points usually gets a good angle of view during optimisation, even when 
it isn't a full 360°.

-- 
Bruno

-- 
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/0C7CAA64-7085-41A6-B0C4-B5CE80FB5A28%40postle.net.