|
|
Creating
immersive panoramas : -Part
2- 3.- Locating the control points. Panorama Tools requires that you provide it with the pixel coordinates of "a sufficient number" of couples of matching points for each pair of images. PTools uses these coordinates to estimate the pitch/yaw/roll angle of each images with respect to the first one - the anchor image - and the value of the parameters needed to make the stitching such as the horizontal field of view of the lens and its distortion. Practically for this setup you will need 4 couples of points for each seam to determine enough parameters to get a reasonable fit. The control points should be chosen to be easily identifiable in each image of a pair, such as corners of windows or frames, small pebbles, flowers in grass, or extremities of tree branches (take care of moving objects ! wind may play bad tricks...). Try to spread them as much as possible in the overlap region. I first identify the spots that I will use with colored arrows placed on the layer added during step 2. The zoom factor must be low enough to have a full overview of the seam on both photos, placed side to side.
This identification step is not strictly necessary, but it helps to verify the coordinates if something goes wrong, and to avoid to mistake a pebble for another when zooming closer to be more precise. When this step is finished, click on the background layer in the layer palette to select it, then save the three files in Photoshop format. It is very important to select background before assembling the panorama : Panorama Tools considers only the active layer which must contain the image... and not colored arrows !
Final result of this step - arrows oversized to be visible on thumbnails
We are here at the heart of the process, the most tedious - and error prone - step. First, open the empty script with a text editor (Notepad will be fine). Some details on its structure (see Panorama Tools documentation for more details) :
To read the coordinates of the points, use the info palette of Photoshop. First, set the unit of the mouse coordinates to pixels (palette options, units = pixels).
Open a pair of images, zoom them to 200% (press Ctrl + a few times) and place them side to side. Select the first image and place the tool tip (here the pencil) over a control point. Read the x/y value, then go to the second image and get the X/Y value of the same control point. The c-line of the example below will be : c n0 N1 x892 y519 X116 Y507
Now it's simple : just repeat this process for each control point of each image pair... Your script should look like this. Save it !
|
|||||||||