PanoTools mailing list archive

Mailinglist:PanoTools NG
Sender:Steinar Midtskogen steinar@...
Date/Time:2014-Oct-26 19:17:48
Subject:Star calibration and reprojection


PanoTools NG: Star calibration and reprojection Steinar Midtskogen steinar@... 2014-Oct-26 19:17:48

I have a couple of Vivotek IP8172 IP cameras which have semi-fisheye
lenses (150 degrees diagonally).  I'd like to be able to change the
projection.  So I've got some video from the cameras shot overnight
which includes the brightest stars, and I wrote a program tracking the
positions of the stars as they moved across the frame so that I now have
a fair amount of pixel positions (about 1500) in the frame and their
corresponding azimuth and altitude location in the sky.  Or put another
way, I have about 1500 control points: pixel positions from an image
taken with an unknown lens and their corresponding positions in an
equirectangular frame (using azimuth as x and 90-altitude as y).  So far
so good.

How can I use the data to make a .pto file needed for nona to reproject
frames from my cameras?

I made this .pto file:

i w2560 h1920 v115.3 f3 n"frame.jpg"
i w360 h180 f4 v360 n"dummy.jpg"

# specify variables that should be optimized
v v0
v r0
v p0
v a0
v b0
v c0
v d0
v e0
v g0
v t0

# control points
c n0 N1 x468.43 y794.73 X166.154 Y65.766
c n0 N1 x474.67 y795.08 X166.426 Y65.737
c n0 N1 x479.56 y795.81 X166.698 Y65.707
... [and about 1500 more points]

But where do I go from there?  I'm not really trying to stitch anything
here, the second frame doesn't really exists and would fully overlap
anyway (if I try to stich in Hugin, it complains about overlapping

Let's say I want to change the camera frame "frame.jpg" into an
equirectangular projection.


Posted by: Steinar Midtskogen <#removed#>

<*> Wiki:
<*> User Guidelines:
<*> Nabble (Web)
<*> NG Member Map
<*> Moderators/List Admins: #removed# 


Yahoo Groups Links

<*> To visit your group on the web, go to:

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    (Yahoo! ID required)

<*> To change settings via email:

<*> To unsubscribe from this group, send an email to:

<*> Your use of Yahoo Groups is subject to:

Next thread:

Previous thread:

back to search page