## What is the exact formula for the distortion?

Share your tips and tricks here or get help with any Autopano Pro / Giga problem!
No bug reports (of any kind) in this forum!

Roland Karlsson
Member

Topic author
Posts: 31
Likes: 1 post
Liked in: 0 post
Joined: Sat Jul 23, 2016 10:51 pm
Info

### What is the exact formula for the distortion?

There are some lens parameters
- focal length (in mm)
- k1, k2, k3
- xoffset, yoffset

1. Are offsets in pixels, mm or other measure?

2. For the distortion formula, is the radius (x distance from center) measured in pixel, mm or other?

3. What formula do you use?
a. r' = r (1 + k1*r + k2*r^2 + k3*r^3)
b. r' = r(1 + k1*r^2 + k2*r^4 + k3*r^6)
c. other

4. How do you treat fish eye lenses? NOTE: They cannot really use k1,k2,k3.

Roland Karlsson
Member

Topic author
Posts: 31
Likes: 1 post
Liked in: 0 post
Joined: Sat Jul 23, 2016 10:51 pm
Info

### Re: What is the exact formula for the distortion?

Hmmmm ... I really want to know.

olivierbo
Kolor Team

Posts: 2225
Likes: 1 post
Liked in: 133 posts
Joined: Thu Nov 06, 2014 11:44 am
Info

### Re: What is the exact formula for the distortion?

Hello,

Sorry, but as you might expect, we cannot communicate on that stuff.

Best regards,
Olivier

Roland Karlsson
Member

Topic author
Posts: 31
Likes: 1 post
Liked in: 0 post
Joined: Sat Jul 23, 2016 10:51 pm
Info

### Re: What is the exact formula for the distortion?

I do not agree. I really need it. I do not think your program is finding good parameters for my lens. And I want to generate them myself and insert them. It is not like the k1, k2 and k3 .. parameters are all that secret .. is it? There are a limited bunch of guesses what they could mean. With some tedious work I could find it out.

An alternative for me would be to use Hugin or PTGui that both uses Panorma Tools, that is open source. Then the lens formula would be totally known. Unfortunately they use formula 3a above, which is wrong. So ... than I have to convince the Panorama Tool community to switch to formula 3b, which is right. I hope you are not using 3a?

olivierbo
Kolor Team

Posts: 2225
Likes: 1 post
Liked in: 133 posts
Joined: Thu Nov 06, 2014 11:44 am
Info

### Re: What is the exact formula for the distortion?

Hello,

I'm really sorry. There's a NDA that do not allow us to communicate on that stuff.

Kind regards,
Olivier

Roland Karlsson
Member

Topic author
Posts: 31
Likes: 1 post
Liked in: 0 post
Joined: Sat Jul 23, 2016 10:51 pm
Info

### Re: What is the exact formula for the distortion?

Then I think you need to add a tool that can make a better lens analysis. That would improve the alignment of images.

I have such a tool, and my plan was to use it and input the parameters into autopano.

An alternative for me would be to convert all input pictures to corrected pictures before adding them to the project. That is tedious and time consuming and also lose some quality.

Or - as I said - maybe switch to Hugin. Unfortunately they have the wrong lens formula, otherwise I would be using that instead already.

olivierbo
Kolor Team

Posts: 2225
Likes: 1 post
Liked in: 133 posts
Joined: Thu Nov 06, 2014 11:44 am
Info

### Re: What is the exact formula for the distortion?

Hello,

Have you tried our Lens correction plugin using Adobe's lcp profiles? Is that something that can help you?

Best,
Olivier

Roland Karlsson
Member

Topic author
Posts: 31
Likes: 1 post
Liked in: 0 post
Joined: Sat Jul 23, 2016 10:51 pm
Info

### Re: What is the exact formula for the distortion?

Thanks for that info. Ill take a look. My lenses have lcp profiles.

Skaven252
Member

Posts: 53
Likes: 4 posts
Liked in: 4 posts
Joined: Thu Jan 26, 2017 9:03 am
Info

### Re: What is the exact formula for the distortion?

There's even been talk about needing 4th degree lens correction in some cases.

http://paulbourke.net/dome/fisheyecorrect/

Roland Karlsson
Member

Topic author
Posts: 31
Likes: 1 post
Liked in: 0 post
Joined: Sat Jul 23, 2016 10:51 pm
Info

### Re: What is the exact formula for the distortion?

I think it is better to correct for a fish eye for a fish eye, using a correct model for fish eyes. Then you can make a full correction, even out to the very edge of the image circle. You would need an infinite polynomial to do that otherwise.

I am one of the authors of this tool:

http://proxel.se/lens.html

And that is the main reason I want to know the exact formula. Then I can make a program that can convert to the Kolor Autopano parameters. Look at the documentation so can you find how we do the correction for fish eyes.

Now - there are also stereoscopic fish eyes
This is something that would be a good idea to add to our tool.
The fantastic Samyang 12 mm fish eye is stereoscopic.

### Who is online

Users browsing this forum: No registered users and 2 guests