Re: [hugin-ptx] Re: Converting Hugin pto lens parameters to OpenCV compatible ones

2017-10-18 Thread Pavel Iacovlev
Thank you a ton Thomas, with your input I was able to get pretty close to what I need. On Tue, Oct 17, 2017 at 6:41 PM, T. Modes wrote: > > > Am Montag, 16. Oktober 2017 22:49:55 UTC+2 schrieb Iacovlev Pavel: >> >> Full frame fisheye ? is that it ? not 100% sure. >> > > For

Re: [hugin-ptx] Re: Converting Hugin pto lens parameters to OpenCV compatible ones

2017-10-17 Thread T. Modes
Am Montag, 16. Oktober 2017 22:49:55 UTC+2 schrieb Iacovlev Pavel: > > Full frame fisheye ? is that it ? not 100% sure. > For a full frame fisheye (but not e.g. for the stereographic fisheye) the following equation should be correct from Hugins point of view: var focalLengthMm = sensorSizeX /

Re: [hugin-ptx] Re: Converting Hugin pto lens parameters to OpenCV compatible ones

2017-10-16 Thread T. Modes
Am Montag, 16. Oktober 2017 22:12:05 UTC+2 schrieb Iacovlev Pavel: > > The projection is equirectangular, I have attached a screenshot of the > project tab from Hugin. > Sorry, but I was not clear enough. I was referring to the lens or input projection. Equirectangular is the output

[hugin-ptx] Re: Converting Hugin pto lens parameters to OpenCV compatible ones

2017-10-16 Thread T. Modes
Am Montag, 16. Oktober 2017 20:38:24 UTC+2 schrieb Iacovlev Pavel: > > Thank you for the info. I will try the suggestions from the link you > provided, maybe it will be a fit (or at least good enough) for my case > also, since I only use the `a` and `c` parameters. > Any idea if my method for

[hugin-ptx] Re: Converting Hugin pto lens parameters to OpenCV compatible ones

2017-10-16 Thread Iacovlev Pavel
Thank you for the info. I will try the suggestions from the link you provided, maybe it will be a fit (or at least good enough) for my case also, since I only use the `a` and `c` parameters. Any idea if my method for calculating `focal_pixels` is correct? On Monday, October 16, 2017 at

[hugin-ptx] Re: Converting Hugin pto lens parameters to OpenCV compatible ones

2017-10-16 Thread T. Modes
Am Montag, 16. Oktober 2017 14:38:36 UTC+2 schrieb Iacovlev Pavel: > > My challenge: > > Can someone point me into the right direction to figure out how to > properly calculate/convert `focal_pixels` and the `k1, k2, k3, k4` > parameters ? > > k1 - Most likely corresponds to `c` pto value. In