Re: [hugin-ptx] Re: incomplete lens correction model - it bites

2018-08-24 Thread klaus . foehl
Hello again, after several weeks of work-related absence... Prompted by someone mentioning LCP files and the lens model Adobe implements in their products, http://download.macromedia.com/pub/labs/lensprofile_creator/lensprofile_creator_cameramodel.pdf I have done some internet searches.

Re: [hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-30 Thread bugbear
klaus.fo...@gmail.com wrote: For the latter cases, when CPs become dodgy, hugin is good enough. It is in good cases that its limitations get apparent. Have you actually encountered these limitations? - none of your examples are anywhere near these limits; their "realworld" problems greatly

[hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-28 Thread Erik Krause
Am 27.07.2018 um 22:55 schrieb klaus.fo...@gmail.com: The limitations also make it necessary that hugin / panotools have to provide different lens models, as rectangular and fisheye lenses cannot be unified. With two more odd polynomials they could. It is amazing how well a Taylor series with

Re: [hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-27 Thread klaus . foehl
Hi bugbear, As you notice, the mathematical lens model, despite its shortcoming, does a halfway decent job at about pixel or half pixel level. In a finished panoramic, you visually notice when images are misaligned at the seam line. Hugin's sidekick enblend does a really good job in sorting

Re: [hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-27 Thread bugbear
Erik Krause wrote: Am 26.07.2018 um 12:18 schrieb klaus.fo...@gmail.com: https://mab.to/DNe8WRQgF Entrance pupil positions should not be more than 5 millimetres apart. I managed to get this result: http://erik-krause.de/align-foehl.gif misalignment is in the magnitude of image blur in the

[hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-26 Thread Erik Krause
Am 26.07.2018 um 12:18 schrieb klaus.fo...@gmail.com: https://mab.to/DNe8WRQgF Entrance pupil positions should not be more than 5 millimetres apart. I managed to get this result: http://erik-krause.de/align-foehl.gif misalignment is in the magnitude of image blur in the corners. In the very

[hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-26 Thread klaus . foehl
Am Donnerstag, 26. Juli 2018 13:42:40 UTC+2 schrieb Erik Krause: > > Am 26.07.2018 um 13:32 schrieb klaus...@gmail.com : > > This difference image shows the misalignment near the corner: > > http://www.foehl.net/tiff00010002.jpg > > This could as well be caused by parallax due to entrance

[hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-26 Thread Erik Krause
Am 26.07.2018 um 13:32 schrieb klaus.fo...@gmail.com: This difference image shows the misalignment near the corner: http://www.foehl.net/tiff00010002.jpg This could as well be caused by parallax due to entrance pupil shift. And it is hard to tell whether chromatic aberration plays a role with

[hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-26 Thread klaus . foehl
Hallo, This difference image shows the misalignment near the corner: http://www.foehl.net/tiff00010002.jpg Best regards Klaus -- 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

[hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-26 Thread klaus . foehl
Am Mittwoch, 25. Juli 2018 23:09:40 UTC+2 schrieb Erik Krause: > > ... > The parallax is clearly visible. See the roof of the house move against > the background: http://erik-krause.de/parallax-foehl.gif > Indeed. And I see that the shadow has moved as well. I have already looked into the 5

[hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-26 Thread klaus . foehl
Am Mittwoch, 25. Juli 2018 23:12:07 UTC+2 schrieb Erik Krause: > > Am 25.07.2018 um 23:09 schrieb Erik Krause: > >> What I can do is to take some photos while not flying. It will not be > >> a 360 degrees panoramic but more like 120 to 150 degs, however I can > >> control the nodal point to a

[hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-25 Thread Erik Krause
Am 25.07.2018 um 23:09 schrieb Erik Krause: What I can do is to take some photos while not flying. It will not be a 360 degrees panoramic but more like 120 to 150 degs, however I can control the nodal point to a few mm and typical objects are 100+ metres away. That would certainly help. ...

[hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-25 Thread Erik Krause
Am 25.07.2018 um 22:47 schrieb klaus.fo...@gmail.com: Thank you for looking into it. While I was sure the drone drifted barely, and as the photos are taken from 100m height I cannot prove that it is not parallax. The parallax is clearly visible. See the roof of the house move against the

[hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-25 Thread klaus . foehl
Hi Erik, Thank you for looking into it. While I was sure the drone drifted barely, and as the photos are taken from 100m height I cannot prove that it is not parallax. What I can do is to take some photos while not flying. It will not be a 360 degrees panoramic but more like 120 to 150 degs,

[hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-25 Thread klaus . foehl
Re your sgn(r)*r**2 mapping function. You can realise with a small aperture, then a lens with r^2 and r^3 terms which maps your incoming theta onto sgn(theta)×theta^2 and last a lens converting direction to position. It is doable, even on a turntable. But you'll get sizeable imaging errors as

[hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-25 Thread Erik Krause
Am 25.07.2018 um 15:05 schrieb klaus.fo...@gmail.com: I am using a free service. Downside is that the 2.5 GB will expire there after 48 hours. Files from a Parrot Anafi drone flight are here: https://mab.to/baXC9ntbt It would have been easier if you included only the images that belong to

[hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-25 Thread klaus . foehl
Why holomorphic? Because a spherical lens surface parametrised as z(x,y) is holomorphic. Then light refraction according to Snell's law also gives holomorphic funktions for the rays. All this if course has a finite convergence radius. Aspherical corrections are usually even polynomials and

[hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-25 Thread Torsten Bronger
Hallöchen! klaus.fo...@gmail.com writes: > [...] > > But polar corrdinates are slightly peculiar at vector-r=0, and to > have them differentiable there the function in r must be odd. > (More general, odd f(r) for f(r)*sin(2n*phi+phi0) and even f(r) > for f(r)*sin((2n+1)*phi+phi0) I agree that

[hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-25 Thread klaus . foehl
Hallo, Am Mittwoch, 25. Juli 2018 15:05:30 UTC+2 schrieb klaus...@gmail.com: > > Hello, > > I am using a free service. Downside is that the 2.5 GB will expire there > after 48 hours. Files from a Parrot Anafi drone flight are here: > > https://mab.to/baXC9ntbt > A few observations: 1) On import

[hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-25 Thread klaus . foehl
Hello Erik, Am Mittwoch, 25. Juli 2018 17:15:19 UTC+2 schrieb Erik Krause: > > Am 25.07.2018 um 16:38 schrieb klaus...@gmail.com : > > Please compute, in cartesian coordinates, the partial derivative > d^2/dxdx > > of the 2-dim mapping function with c=1 as parameter. > > Hint: you'll

[hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-25 Thread klaus . foehl
Hallo, Am Dienstag, 24. Juli 2018 22:13:04 UTC+2 schrieb Erik Krause: > > Am 24.07.2018 um 21:01 schrieb klaus...@gmail.com : > > > I found an old thread on the panotools wiki. > > > > https://wiki.panotools.org/User:Klaus/Improving_Hugin > > There probably is one problem we didn't consider

[hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-25 Thread Erik Krause
Am 25.07.2018 um 16:38 schrieb klaus.fo...@gmail.com: Please compute, in cartesian coordinates, the partial derivative d^2/dxdx of the 2-dim mapping function with c=1 as parameter. Hint: you'll encounter some x/abs(x) - like terms. In the wiki discussion you write "sqrt() has a

[hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-25 Thread klaus . foehl
Am Dienstag, 24. Juli 2018 22:37:35 UTC+2 schrieb Erik Krause: > > Am 23.07.2018 um 17:26 schrieb klaus...@gmail.com : > > > Non-zero parameters a and c introduce singularities at r=0, something a > real lens does not have. > > Since the correction function itself doesn't have a singularity

[hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-25 Thread klaus . foehl
Hallo, Am Dienstag, 24. Juli 2018 21:56:16 UTC+2 schrieb Torsten Bronger: > > Hallöchen! > > klaus...@gmail.com writes: > > > I found an old thread on the panotools wiki. > > > > https://wiki.panotools.org/User:Klaus/Improving_Hugin > > I find the language hard to understand, sorry. Anyway

[hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-25 Thread klaus . foehl
Hello, I am using a free service. Downside is that the 2.5 GB will expire there after 48 hours. Files from a Parrot Anafi drone flight are here: https://mab.to/baXC9ntbt Feel free to upload some or all files to more permanent storage. Best regards Klaus -- A list of frequently asked

[hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-24 Thread Erik Krause
Am 23.07.2018 um 17:26 schrieb klaus.fo...@gmail.com: Non-zero parameters a and c introduce singularities at r=0, something a real lens does not have. Since the correction function itself doesn't have a singularity at r=0 and all that changes at r=0 is the slope of the curve there is a

[hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-24 Thread Erik Krause
Am 24.07.2018 um 21:01 schrieb klaus.fo...@gmail.com: I found an old thread on the panotools wiki. https://wiki.panotools.org/User:Klaus/Improving_Hugin There probably is one problem we didn't consider then: Higher order polynomials tend to overfit. That might be the reason why professor

[hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-24 Thread Torsten Bronger
Hallöchen! klaus.fo...@gmail.com writes: > I found an old thread on the panotools wiki. > > https://wiki.panotools.org/User:Klaus/Improving_Hugin I find the language hard to understand, sorry. Anyway … what is the argument against even exponents? > As long as there is no hard vignetting in

[hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-24 Thread klaus . foehl
Hallo Torsten, I found an old thread on the panotools wiki. https://wiki.panotools.org/User:Klaus/Improving_Hugin As long as there is no hard vignetting in the lens, the reasoning should work. Best regards Klaus -- A list of frequently asked questions is available at:

[hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-24 Thread klaus . foehl
Hi all, Thanks for the replies so far. I'll upload some photos in due course. But 1st I need to fetch suitable photographic material back at home, and 2nd I want to try to stitch a 360 deg panoramic as this better constrains the FOV fit parameter. As the JPGs have filtering artifacts, I'll

[hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-24 Thread Torsten Bronger
Hallöchen! Gunter Königsmann writes: > Would that help with cellphone lenses that tend to have a > different scale in the top left corner than in the lower right > one? No. It is all about centrosymmetric aberrations here. Tschö, Torsten. -- Torsten Bronger -- A list of frequently asked

Re: [hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-24 Thread Gunter Königsmann
Would that help with cellphone lenses that tend to have a different scale in the top left corner than in the lower right one? Torsten Bronger schrieb am Di., 24. Juli 2018, 07:36: > Hallöchen! > > klaus.fo...@gmail.com writes: > > > [...] > > > > In these old days I did detail that from the

[hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-23 Thread Torsten Bronger
Hallöchen! klaus.fo...@gmail.com writes: > [...] > > In these old days I did detail that from the lens parameter set > abc only the br^3 term is useful. Non-zero parameters a and c > introduce singularities at r=0, something a real lens does not > have. Could you elaborate on this? Possibly by

[hugin-ptx] Re: incomplete lens correction model - it bites

2018-07-23 Thread Erik Krause
Am 23.07.2018 um 17:26 schrieb klaus.fo...@gmail.com: A few days ago I purchased a new camera in the form of the Parrot Anafi drone. The lens has some fisheye characteristics, similar to Gopro. I now discover that the available choice of lens types and parameters only allows bad alignment. It is