Big Ben's Panorama Tutorials

Lens Calibration

Selecting Control Points

Vertical lines

The quickest way I find of selecting several control points quickly for vertical lines is using PTools Pixel Picker. All points along the line in each image can be aligned to a single point, so it's simply a case of first choosing a point in the left image and then selecting other points in another image on the right side.

Below is an illustration of the points chosen to define one vertical line...

 
Reference point
Image 6
436,240
Matching points
Image 5
732,27
746,71
759,122
770,182
777,239
Matching points
Image 6
433,2
433,39
433,83
434,132
436,186
Matching points
Image 7
139,24
125,69
112,123
104,180
100,240

... and the corresponding lines to be added to the script...

c n6 N5 x436 y240 X732 Y27 t1
c n6 N5 x436 y240 X746 Y71 t1
c n6 N5 x436 y240 X759 Y122 t1
c n6 N5 x436 y240 X770 Y182 t1
c n6 N5 x436 y240 X777 Y239 t1
c n6 N6 x436 y240 X433 Y2 t1
c n6 N6 x436 y240 X433 Y39 t1
c n6 N6 x436 y240 X433 Y83 t1
c n6 N6 x436 y240 X434 Y132 t1
c n6 N6 x436 y240 X436 Y186 t1
c n6 N7 x436 y240 X139 Y24 t1
c n6 N7 x436 y240 X125 Y69 t1
c n6 N7 x436 y240 X112 Y123 t1
c n6 N7 x436 y240 X104 Y180 t1
c n6 N7 x436 y240 X100 Y240 t1

From these control points we can also define normal control points.

c n6 N5 x436 y240 X777 Y239
c n6 N5 x436 y186 X770 Y182 
c n6 N5 x434 y182 X759 Y122
c n6 N5 x433 y83 X746 Y71
c n6 N5 x433 y39 X732 Y27
c n6 N7 x436 y240 X100 Y240
c n6 N7 x436 y186 X104 Y180 
c n6 N7 x434 y182 X112 Y123
c n6 N7 x433 y83 X125 Y69
c n6 N7 x433 y39 X139 Y24

... although in practise I normally define all of the vertical lines at once, and then go around and select normal control points as it's easier to edit the script manually that way.

Now that you know what you're doing..  get on with it.  Select a number of points from vertical lines, and several 'normal' control points and finish the script... After that, it's time to run PTOptimizer.

 


Previous ] Next ]


This page, its contents and style, are the responsibility of the author and do not represent the views, policies or opinions of The University of Melbourne. All photographs © Ben Kreunen 2000

Ben Kreunen <bernardk@unimelb.edu.au>
Department of Pathology
Last modified: February 24, 2003