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 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 / (hfov / 180 * Math.PI);
>
> var focalLengthPx = (focalLengthMm / 5.70) * w;
>
>
> But you are mixing constants and variables, e.q. you are calculating the
> sensorSizeX in the first place and then you are using the constant 5.7 in
> the last equation.
>
> And when you combine both equation you don't need sensorSizeX at all.
>
>
> Also I don't know if OpenCV/nvidia is using the same convention.
>
> --
> A list of frequently asked questions is available at:
> http://wiki.panotools.org/Hugin_FAQ
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "hugin and other free panoramic software" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/hugin-ptx/ZbrCrgLdNJk/unsubscribe.
> To unsubscribe from this group and all its topics, 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/d31c61d0-32d4-4d35-b119-9fa97b84987c%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAHWp1L_JG3RmTN9zq2J01Xn8qAa8dRLVEQW8XLCE1a1-%2BAMGYQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


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 / (hfov / 180 * Math.PI);

var focalLengthPx = (focalLengthMm / 5.70) * w;


But you are mixing constants and variables, e.q. you are calculating the 
sensorSizeX in the first place and then you are using the constant 5.7 in 
the last equation. 

And when you combine both equation you don't need sensorSizeX at all.


Also I don't know if OpenCV/nvidia is using the same convention.

-- 
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/d31c61d0-32d4-4d35-b119-9fa97b84987c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


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 projection.

-- 
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/7d0dcbb5-2ee6-4aa2-9599-5395a790ee6b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.